Skip to content
Back to formatted view

Raw Message

Message-ID: <XFMail.20021029142155.steuer@unibw-hamburg.de>
Date: 2002-10-29T13:21:55Z
From: Detlef Steuer
Subject: unix environment variables under R
In-Reply-To: <3DBE50AD.6040805@tuebingen.mpg.de>

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