If the memory size is too small for the saved workspace to be loaded, and --save is specified in a batch file then the previous workspace is lost. It seems to me that having insufficient memory to load the saved workspace should be a fatal error at least if --save is specified. What do other people think (preferably people that think saved workspaces are potentially useful)? Currently a work-around is to add this to the batch file if (!exists(".Random.seed")) q("no") Thomas Lumley Assistant Professor, Biostatistics University of Washington, Seattle -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I agree, and I sent a message to R-bugs to this effect (currently filed under "startup"), although I was thinking in terms of interactive use. Making this a fatal error seems the best choice to me. Martyn Thomas Lumley wrote:> > If the memory size is too small for the saved workspace to be loaded, and > --save is specified in a batch file then the previous workspace is lost. > It seems to me that having insufficient memory to load the saved workspace > should be a fatal error at least if --save is specified. > > What do other people think (preferably people that think saved workspaces > are potentially useful)?-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._