From k.jewell at campden.co.uk  Thu Oct 18 10:14:44 2012
From: k.jewell at campden.co.uk (Keith Jewell)
Date: Thu, 18 Oct 2012 09:14:44 +0100
Subject: [Rd] Rcmd_environ and R_LIBS_{USER,SITE}
In-Reply-To: <20606.51152.929307.770692@max.nulle.part>
References: <20606.51152.929307.770692@max.nulle.part>
Message-ID: <k5odpj$kqp$1@ger.gmane.org>

No reply in a number of hours, so here is a suggestion from ignorance :-}

?Startup refers to a number of other "site and user files to process for 
setting environment variables" but not to Rcmd_environ. The contents of 
$R_HOME/etc/Rcmd_environ seem to reflect (some of) the contents of 
(some) other files.

I have similar lines (defining library paths) in
     $R_HOME/etc/Renviron.site

Is it correct to directly edit Rcmd_environ or should it be modified 
only via other files? (A genuine question).

On 17/10/2012 15:59, Dirk Eddelbuettel wrote:
>
> Is there a fundamental reason why I cannot set either one of
>
>    ## add local library path -- doesn't work either
>    R_LIBS_USER="c:/opt/R-library"
>    R_LIBS_SITE="c:/opt/R-library"
>
> in $R_HOME/etc/Rcmd_environ even though I can seemingly set other things here?
>
> It breaks "R CMD check" for me as I prefer NOT to install packages in a
> versioned path.
>
> FWIW, defaulting to a versioned path is (to this no-longer-bemused user) as
> much a permenent R bug (on Windoze) as the default installation into a path
> with spaces.
>
> Dirk
>



[Rd] Rcmd_environ and R_LIBS_{USER,SITE}
Keith Jewell