From hb at biostat.ucsf.edu  Thu Feb 23 09:14:58 2012
From: hb at biostat.ucsf.edu (Henrik Bengtsson)
Date: Thu, 23 Feb 2012 00:14:58 -0800
Subject: [Rd] R devel [and R 2.14.1 patched]: R CMD build now sources
	~/.Rprofile
Message-ID: <CAFDcVCR5fChbvsiFPyVYsexgsS3n=SQ=FuFHk4tBNWgoVavvtQ@mail.gmail.com>

I'd like to follow up on this one.  It may be that I have
misunderstood something, but on both R devel (2012-02-22 r58452) and R
2.14.1 patched (2012-02-18 r58394) I can't seem to avoid loading
~/.Rprofile when I run 'R CMD <cmd>', e.g. R CMD build.  For me, the
loading of ~/.Rprofile by 'R CMD' started a few weeks ago, and I
haven't seen it before.  More details below.  It seems incorrect that
for instance 'R CMD check' should load the users ~/.Rprofile file by
default.  Is this a bug or intended?

/Henrik


On Wed, Feb 8, 2012 at 5:31 PM, Henrik Bengtsson <hb at biostat.ucsf.edu> wrote:
> I've just noticed that with a recent R devel on Windows, R CMD build
> sources ~/.Rprofile, e.g.
>
>> RCMD build
> Running ~/.Rprofile
>
>> R CMD build
> Running ~/.Rprofile
>
> FYI R --no-init-file & R --vanilla still avoid this.
>
>> sessionInfo()
> R Under development (unstable) (2012-02-08 r58297)
> Platform: x86_64-pc-mingw32/x64 (64-bit)
>
> locale:
> [1] LC_COLLATE=English_United States.1252
> [2] LC_CTYPE=English_United States.1252
> [3] LC_MONETARY=English_United States.1252
> [4] LC_NUMERIC=C
> [5] LC_TIME=English_United States.1252
>
> attached base packages:
> [1] stats ? ? graphics ?grDevices utils ? ? datasets ?methods ? base
>>
>
> /Henrik



[Rd] R devel [and R 2.14.1 patched]: R CMD build now sources ~/.Rprofile
Henrik Bengtsson