Create the system command to run BUGS and execute it.
runBugs(bugs=system("which OpenBUGS", TRUE), script, n.chains, workingDir,
OpenBugs = TRUE, Windows=TRUE, verbose = TRUE)
A character string specifying the full name (including path) of the BUGS executable. It must end with .txt to be recognizable by BUGS.
A character string specifying the full name (including path) of the script to be run. It must end with .txt to be recognizable by BUGS.
The number of MCMC chains.
The working directory where the output files from BUGS are stored.
If TRUE, OpenBugs is used.
If TRUE, Windows plataform is used.
If TRUE, print the log file from BUGS.
None.