Learn R Programming

rbugs (version 0.5-9.1)

runBugs: Execute a BUGS Srcipt from R

Description

Create the system command to run BUGS and execute it.

Usage

runBugs(bugs=system("which OpenBUGS", TRUE), script, n.chains, workingDir,
        OpenBugs = TRUE, Windows=TRUE, verbose = TRUE)

Arguments

bugs

A character string specifying the full name (including path) of the BUGS executable. It must end with .txt to be recognizable by BUGS.

script

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.

n.chains

The number of MCMC chains.

workingDir

The working directory where the output files from BUGS are stored.

OpenBugs

If TRUE, OpenBugs is used.

Windows

If TRUE, Windows plataform is used.

verbose

If TRUE, print the log file from BUGS.

Value

None.

See Also

rbugs