mcnda839 at mncn.csic.es
2009-Apr-03 20:30 UTC
[R] Basic doubts on the use of several script files in R batch mode
I already searched for information regarding the batch file operations within R. But I could not locate the information I need. Basically I have a doubt regarding the procedures on the batch use of several script files (*.R). How can I do this? How can I define the order of files? My intention is to programme openings, math operations and savings of *.Rdata sessions, but in a sequential manner. Thanks in advance, Diogo Andr? Alagador Biochange Lab, Madrid, Spain
Emmanuel Charpentier
2009-Apr-04 09:54 UTC
[R] Basic doubts on the use of several script files in R batch mode
Le vendredi 03 avril 2009 ? 22:30 +0200, mcnda839 at mncn.csic.es a ?crit :> I already searched for information regarding the batch file operations > within R. But I could not locate the information I need. > > Basically I have a doubt regarding the procedures on the batch use of > several script files (*.R). > How can I do this? > How can I define the order of files? > > My intention is to programme openings, math operations and savings of > *.Rdata sessions, but in a sequential manner.>From the top of my limbic system :$ cat file1 file2 file3 > R --vanilla --no-save # Of course, file3 should call save.image() at some convenient place Another, slightly more "correct" solution would be a batch job doing the relevant R CMD BATCH invocations See also the littler package, which allows to use R as a shell language. I don't know zilch about it ... HTH Emmanuel Charpentier
jim holtman
2009-Apr-04 17:03 UTC
[R] Basic doubts on the use of several script files in R batch mode
Create a "master" file that 'source's the required *.R files and then does any of the pre/post processing that you want. On Fri, Apr 3, 2009 at 4:30 PM, <mcnda839 at mncn.csic.es> wrote:> I already searched for information regarding the batch file operations > within R. But I could not locate the information I need. > > Basically I have a doubt regarding the procedures on the batch use of > several script files (*.R). > How can I do this? > How can I define the order of files? > > My intention is to programme openings, math operations and savings of > *.Rdata sessions, but in a sequential manner. > > Thanks in advance, > > Diogo Andr? Alagador > Biochange Lab, Madrid, Spain > > ______________________________________________ > R-help at 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. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?