installed directory not writable, cannot update packages 'boot', 'class', 'KernSmooth', 'mgcv', 'nnet', 'rpart', 'spatial'

r

Solution

I faced the same problem working in R-studio. The solution is to give root access to R.

In Windows, that means you need to run the program as an Administrator.

In Unix/Linux, you should launch R from the terminal by doing `sudo R`.

Then, once you're running with sufficient privileges, you can try installing your package and it should work.

Problem

I installed the Bioconductor packages on R version 3.1.2 on Ubuntu 14.04 and received the message below: The downloaded source packages are in ‘/tmp/RtmpZYw0Qp/downloaded_packages’ Warning message: installed directory not writable, cannot update packages 'boot', 'class', 'KernSmooth', 'mgcv', 'nnet', 'rpart', 'spatial' What does it mean, and how does it affect using the above packages on R?

Original source

Related problems