# NOT RUN {
## no tested examples for mac-os.
# }
# NOT RUN {
script.file <- paste(tempfile("script"), ".txt", sep="")
genBugsScript(paramSet=c("alpha", "theta"), n.chains=2, n.keep=1500,
n.burnin=500, n.thin=1,
model.file="~/tmp/model.txt",
data.file="~/tmp/data.txt",
inits.file=c("~/tmp/init1.txt",
"~/tmp/init2.txt"),
bugsWorkingDir=" ~/tmp/",
script=script.file)
file.show(script.file)
unlink(script.file)
script.file <- paste(tempfile("script"), ".txt", sep="")
genBugsScript(paramSet=c("alpha", "theta"), n.chains=2, n.keep=1500,
n.burnin=500, n.thin=1,
model.file="c:/tmp/model.txt",
data.file="c:/tmp/data.txt",
inits.file=c("c:/tmp/init1.txt",
"c:/tmp/init2.txt"),
bugsworkingDir="c:/tmp",
script=script.file)
file.show(script.file)
unlink(script.file)
# }
Run the code above in your browser using DataLab