Skip to content
Prev 304004 / 398502 Next

Error: ReadItem: unknown type 98, perhaps written by later version of R

On 08/23/2012 11:46 AM, Aldi Kraja wrote:
yes, they'll all write to ~/.RData (actually, .RData in the current 
directory, see ?Startup).
yes, that's the right thing to do.
Each independent R process gets its own temporary directory, see the 
output of tempdir().

mtmorgan at precise-mtmorgan:$ R --silent --vanilla -e "tempdir()"
 > tempdir()
[1] "/tmp/RtmpuZ7IkT"

mtmorgan at precise-mtmorgan:$ R --silent --vanilla -e "tempdir()"
 > tempdir()
[1] "/tmp/RtmpXnKIVO"


Hmm, but in the 'parallel' package the child processes inherit from the 
parent.

 > unique(unlist(mclapply(1:4, function(i) tempdir(), mc.cores=4)))
[1] "/tmp/Rtmpkr5w6j"