[R] Update Packages error

Peter Langfelder peter.langfelder at gmail.com
Fri Mar 30 07:11:19 CEST 2012


On Thu, Mar 29, 2012 at 9:41 PM, Jim Silverton <jim.silverton at gmail.com> wrote:
> Anyone knows how to get around this message? I am trying to update some
> packages in R but I get the following message I use R for 64 bit windows.
> Warning in install.packages(update[instlib == l, "Package"], l, contriburl
> = contriburl,  :
>  'lib = "C:/Program Files/R/R-2.14.1/library"' is not writable
> Error in install.packages(update[instlib == l, "Package"], l, contriburl =
> contriburl,  :
>  unable to install packages

You most likely don't have permission to write to that directory. Run
R as a user with enough permissions (usually you have to be an
administrator or similar to do that), or ask an administrator to
update the packages for you. If all else fails, you can create your
own R library (somewhere on your disk where you have write access) and
install updated packages in it.

HTH

Peter



More information about the R-help mailing list