[R] unix environment variables under R

Roger Bivand Roger.Bivand at nhh.no
Tue Oct 29 13:36:36 CET 2002


> hi,
> i am working on a little R-project with a couple od other guys.we use
> CVS, but everyone keeps the R-source files in different locations in his
>  home-directory. of course this causes trouble when sourcing R-files. i
> 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?

?Sys.getenv

very useful for passing things into an R session.

>
> greetinx jan
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


-- 
Roger Bivand
NHH, Breiviksveien 40, N-5045 Bergen, Norway
(travelling but still accessible)


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