Hi Rers,

I would like to use the BATCH mode to R automatically:
open 2 R sessions (ex. data1.Rdata, data2.Rdata),
produce some calculations (…),
save 2 sessions (sol1.Rdata, sol2.Rdata),

My problem when using R CMD BATCH master.R is that when I use master.R as a master file, with:
  source(“file1.R”)
  source(“file2.R”)

with “file1.R” script:
  load(“data1.Rdata”)
  …
  save.image(“sol1.Rdata”)

and “file2.R” script with
  load(“data2.Rdata”)
  …
  save.image(“sol2.Rdata”)

sol.2.Rdata comes with information of sol1.Rdata, appearing that the 1st R session did not shutdown. Any suggestions to save sol1.Rdata and sol2.Rdata, independently from each other?

Grateful in advance,
All the best,

Diogo Alagador

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to