From jon.clayden at gmail.com  Wed Feb 16 17:25:49 2011
From: jon.clayden at gmail.com (Jon Clayden)
Date: Wed, 16 Feb 2011 16:25:49 +0000
Subject: [Rd] Ignoring .Rprofile when installing a package
Message-ID: <AANLkTin_a=tANUqwH3_=zFadbFuc-M8KhHTovyuahDpD@mail.gmail.com>

Dear all,

Is there a way to force R CMD INSTALL to ignore ~/.Rprofile and
similar? I presume it sources these startup files for a reason, but
I've found that it can cause confusion or problems. In particular, my
~/.Rprofile loads a few packages which I very frequently use, but this
stops me from installing new versions of their dependencies; viz.

$ R CMD INSTALL tractor.base
* installing to library ?/Library/Frameworks/R.framework/Resources/library?
* installing *source* package ?tractor.base? ...
** R
** data
** preparing package for lazy loading
Error: package ?tractor.base? is required by ?tractor.opt? so will not
be detached
* removing ?/Library/Frameworks/R.framework/Resources/library/tractor.base?
* restoring previous
?/Library/Frameworks/R.framework/Resources/library/tractor.base?

I've tried R --vanilla CMD INSTALL, but that seems to have no effect.
This is R 2.12.1 on Mac OS X.6.6. Any pointers appreciated.

All the best,
Jon



[Rd] Ignoring .Rprofile when installing a package
Jon Clayden