[R] external R scripts

Jonathan P Daily jdaily at usgs.gov
Wed Nov 10 15:07:05 CET 2010


It would be possible to call other R scripts using calls to ?system or 
?system2 and ?Rscript, provided you formatted what you passed as [args] 
and how your scripts handled [args].
--------------------------------------
Jonathan P. Daily
Technician - USGS Leetown Science Center
11649 Leetown Road
Kearneysville WV, 25430
(304) 724-4480
"Is the room still a room when its empty? Does the room,
 the thing itself have purpose? Or do we, what's the word... imbue it."
     - Jubal Early, Firefly



From:
"Maas James Dr (MED)" <J.Maas at uea.ac.uk>
To:
"r-help at r-project.org" <r-help at r-project.org>
Date:
11/10/2010 08:42 AM
Subject:
[R] external R scripts
Sent by:
r-help-bounces at r-project.org



Is it possible to send data from an executing R script, to external R 
script files, on linux in this case, get that external R script to 
execute, and pass results back to the central script?  If so what commands 
should I be looking at?  I've googled for R and external, stuff like that 
but no luck.

The reason for the question is that I need to generate simulation data, 
then perform several different analyses on the same data set, then collate 
the results.  All individual analyses can be done sequentially, or perhaps 
more quickly by doing the individual analyses simultaneously if I pass 
them to external functions.

Thanks

J

===============================
Dr. Jim Maas
University of East Anglia


                 [[alternative HTML version deleted]]

______________________________________________
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.



More information about the R-help mailing list