I am running the same R file (file.R) in 12 folders simultaneously (m1, m2,... m12) using a supercomputer. The file has exactly the same name and content, the only difference is that it is contained in different folders. There's no .RData file in any of each folder. All the files call the same .RData file in another folder. Similarly for the R packages.
The file runs smoothly in all folders but in folder m2, where the output of the .Rout file is:
Error in load(name, envir = .GlobalEnv) :
ReadItem: unknown type 0, perhaps written by later version of R
Calls: sys.load.image -> load
Execution halted
The file starts by:
##############################################################################
## ##
## - - - - - - ##
## ##
## S I M U L A T I O N S ##
##############################################################################
require(tidyverse)
require(dplyr)
require(scales)
require(pracma)
require(foreach)
require(doSNOW)
and the .Rout file does not even print the comments and packages. It exits immediately with that error message. I don't understand why folder m2 is so exceptional. Any idea on this error?
PS: I'm sorry, I know I'm not giving you a replicable example, but I just can't replicate it. Running bsub -n 2 -q long_int -Ip -W 48:00 -R "rusage[mem=20000]" -M 20000 -hl R CMD BATCH simulation_doParallel2.R works fine.
i think there might be an .RData on the folder where you call Rscript from... may be home
run: find /home -iname *.RData to find the file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With