[R] unix environment variables under R

Jason Turner jasont at indigoindustrial.co.nz
Mon Oct 28 23:12:34 CET 2002


On Tue, Oct 29, 2002 at 10:11:09AM +0100, Jan Malte Wiener wrote:
...
> thought a UNIX environment variable could be the solution, but R doesn't 
> seem to know about the environment variables.
> e.g. >> source("$PROJECT/xxx.R") results in
>  >> Error in file(file, "r") : unable to open connection
> 
> is there something like environment variables for R?

Yep.  Sys.getenv()

Cheers

Jason
-- 
Indigo Industrial Controls Ltd.
64-21-343-545
jasont at indigoindustrial.co.nz
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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