On 03/08/2013 02:58 PM, Finn Lindgren wrote:
> If you by any chance are using spde models, I could see this happening
> since the spde objects have to be recreated for each new R session in
> order to ensure the existence of the appropriate data files on disk.
> Thus, it might fail or succeed depending on precisely what is done in
> the code and by sweave.
Ok, I did a little test here. I removed all cashed files and recompiled
everything using "knitr". First time I compiled my document everything
looked as expected.
However, second time I noticed problems in objects created by the
following code:
mesh1 <- inla.mesh.create(d0Prooi@coords,plot.delay=1)
mesh2 <- inla.mesh.create(d0Prooi@coords,refine=T,plot.delay=1)
par(mfrow = c(2, 1))
plot(mesh1)
## Error: error in evaluating the argument
Error: internal error -3 in R decompress1
mesh4 <- inla.mesh.create(loc=d0Prooi@coords,
boundary=grenzen4,
refine=list(max.edge=10000),
plot.delay=1)
A<-inla.spde.make.A(mesh4,loc=d0Prooi@coords) #length n
## Error:
internal error -3 in R decompress1
Do you think this might be caused by spde code?
On the positive side, other people told me to experience problems with
knitr cache, so I might just try to switch back to sweave.
Regards,
Olga