[R] How to save independent R sessions in BATCH mode?
    mcnda839 at mncn.csic.es 
    mcnda839 at mncn.csic.es
       
    Sat Apr 11 19:35:42 CEST 2009
    
    
  
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
    
    
More information about the R-help
mailing list