On 28 April 2017 at 00:31, Johannes Ranke wrote:
| > | Packages compiled locally can simply be rebuilt using
| > | 
| > |   update.packages(lib.loc="/usr/local/lib/R/site-library",
| > |   checkBuilt=TRUE)
| > | 
| > | However the packages provided by Debian packages are installed in a
| > | directory only writable by privileged users.
| > 
| > That's irrelevant. You also need to be "privileged" to install a .deb
| > package.
| 
| Not quite irrelevant, as it was recommended on r-help to Göran, who first 
| reported this for Debian, to just use
| 
| update.packages(checkBuilt=TRUE)
| 
| which tries to reinstall also the packages in /usr/lib/R/site-library, which 
| should be left to the Debian package management.

We can split hairs as to whether it is irrelevant, plain wrong or uninformed.

It ignores that users should never write where packages write!  So on a
Debian or Ubuntu system you should NEVER EVER run

   update.packages(checkBuilt=TRUE)

because it would mess up your package install and local install.

What you could do, and which is currently running on my at-work workstation is

   update.packages(lib.loc="/usr/local/lib/R/site-library", ask=FALSE, 
checkBuilt=TRUE)

which updates you local packages.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

Reply via email to