[R] reading file names for R batch process

Sven Garbade garbade at psy.uni-muenchen.de
Thu Dec 6 17:12:49 CET 2001


Prof Brian D Ripley wrote:
> 
> On Thu, 6 Dec 2001, Sven Garbade wrote:
> 
> > Hi all,
> >
> > I've written a function that takes several filenames as arguments, does
> > some calculations and write new files. Now I want to write a shell
> > script (under Linux) that determines the files for the R process and
> > starts R with the filenames as arguments. But how can I commit the
> > filenames to the R process?
> 
> via enviroment variables, most easily.
> 
> Read by Sys.getenv.

Ah, this is very easy and works! Thanks, Sven
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list