Re: [R] cacheSweave fails when used in conjunction with rjags

2010-03-29 Thread Martyn Plummer
Hi Roger, If you do not supply an explicit data list, the jags.model() function will try to get the data from the calling environment. This is obviously not working with cacheSweave, but if you do supply an explicit list, like this: m - jags.model(j.bug, data=list(y=y)) it will work. Martyn

[R] cacheSweave fails when used in conjunction with rjags

2010-03-25 Thread Roger Levy
Hi all, I use the excellent packages rjags and cacheSweave, and unfortunately seem to have found an incompatibility between them. Below are a minimal .Rnw file and corresponding JAGS model file which illustrate the problem: *** JAGS model file; name=j.bug *** model { mu ~