Displaying 1 result from an estimated 1 matches for "plotresults".
Did you mean:
plot_results
2010 Mar 26
1
cacheSweave fails when used in conjunction with rjags
...ocumentclass[12pt]{article}
\usepackage{Sweave}
\begin{document}
<<loadLib>>=
library(rjags)
@
<<testJags,cache=T>>=
y <- rnorm(100)
m <- jags.model("j.bug")
update(m,100)
res <- coda.samples(m,c("mu","sigma"),n.iter=1000)
@
<<plotResults,fig=T>>=
plot(res)
@
\end{document}
***
When I run Sweave with cacheSweaveDriver, I get the following error
(note that this happens on the first invocation, not just on repeat
invocations):
> Sweave("testCacheSweave-jags.Rnw",driver=cacheSweaveDriver)
Writing to file test...