validateInstallOpenBUGS function

Compare OpenBUGS/R2OpenBUGS execution to results supplied with OpenBUGS

Compare OpenBUGS/R2OpenBUGS execution to results supplied with OpenBUGS

A selected subset of the examples from the OpenBUGS manual is executed and compared to results supplied with the package to validate installation.

validateInstallOpenBUGS( OpenBUGS.pgm=NULL, useWINE=FALSE, WINE=NULL, newWINE=TRUE, WINEPATH=NULL )

Arguments

  • OpenBUGS.pgm: See bugs.

  • useWINE: logical; attempt to use the Wine emulator to run OpenBUGS. Default is FALSE. If WINE is used, the arguments OpenBUGS.pgm and working.directory must be given in form of Linux paths rather than Windows paths (if not NULL).

  • WINE: Character, path to wine binary file, it is tried hard (by a guess and the utilities which and locate) to get the information automatically if not given.

  • newWINE: Use new versions of Wine that have winepath

    utility

  • WINEPATH: Character, path to winepath binary file, it is tried hard (by a guess and the utilities which and locate) to get the information automatically if not given.

Details

Operation system support:

  • MS Windows Yes
  • Linux, intel processors Yes, but GUI display and graphics not available.
  • Mac OS X and Unix Wine emulation via useWINE=TRUE

If useWINE=TRUE is used, all paths (such as working.directory and model.file, must be given in native (Unix) style, but OpenBUGS.pgm can be given in Windows path style (e.g. c:/Program Files/OpenBUGS/ ) or native (Unix) style

(e.g. /path/to/wine/folder/dosdevices/c:/ProgramFiles/OpenBUGS/OpenBUGS321/OpenBUGS.exe ).

Returns

No data returned. Prints match/no match result to console for each example.

References

Gelman, A., Carlin, J.B., Stern, H.S., Rubin, D.B. (2003): Bayesian Data Analysis, 2nd edition, CRC Press.

Sturtz, S., Ligges, U., Gelman, A. (2005): R2WinBUGS: A Package for Running WinBUGS from R. Journal of Statistical Software 12(3), 1-16.

Author(s)

Neal Thomas based on BRugs examples created by Chris Jackaon.

See Also

bugs

  • Maintainer: Neal Thomas
  • License: GPL-2
  • Last published: 2020-04-02

Useful links