[R] unix environment variables under R

Detlef Steuer Detlef.Steuer at unibw-hamburg.de
Tue Oct 29 14:21:55 CET 2002


Hi!

Sys.getenv() does the job.

detlef

On 29-Oct-2002 Jan Malte Wiener wrote:
> 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?
> 
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _

"There is no way to peace, peace is the way." -- Ghandi

Detlef Steuer --- http://fawn.unibw-hamburg.de/steuer.html
***** Encrypted mail preferred *****
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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