Skip to content
Prev 44893 / 63424 Next

R CMD check not reading R_LIBS from ~/.R/check.Renviron

Gav,

This is off-list since I only wonder what you are trying to do. It seems to me that you're trying something much too elegant and complicated. One thing that I have learnt to avoid is muck up with environments: that is calling trouble. One day they will change R and you will get errors that are very difficult to track (I had that once with gnome: I did not edit the config file manually, but only used configuration GUI tools, but then gnome changed and I could not start X11 after distro upgrade -- and it was difficult to track the reason).

What I do with R-devel and R release co-existence is that I keep them completely separate. I do  not install (make install) R-devel, but I leave it in its working directory. I have now a symbolic link in ~/bin ($HOME/bin):

cd ~/bin
ln -s ~/R-devel/bin/R R3

So when I want to run R 3.0.0 I use 'R3' and when I want to use stock R of my distro (no 2.15.1) use R. These are completely different beasts, and packages are installed separately for each so that they are 3.0.0 version in R3 and 2.15 versions in R. I don't edit environments, but always use defaults.

With this setup, analogue checks up smoothly with only comment coming from examples:

* checking differences from ?analogue-Ex.Rout? to ?analogue-Ex.Rout.save? ...
2c2
< This is vegan 2.1-23
---
1104d1103
< Warning: argument 'tol.dw' is not used (yet)
4894d4892
< Warning: argument 'tol.dw' is not used (yet)
4933d4930
< Warning: argument 'tol.dw' is not used (yet)
6139d6135
< Warning: argument 'tol.dw' is not used (yet)
7078d7073
< Warning: argument 'tol.dw' is not used (yet)
7116d7110
< Warning: argument 'tol.dw' is not used (yet)
 OK

Cheers, Jari