You can check to see if you have authorization to update those files by right-clicking on the R shortcut icon (on your desktop or in Windows | All Programs | R | R2.14.1 (your version may be different). In the menu that opens, if there is an option to Run as Administrator (near the top on my system), select that and R will be able to write in the directory. If that option is not available, you will have to get someone who can log in as administrator to update those files.
> -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Peter Langfelder > Sent: Friday, March 30, 2012 12:11 AM > To: Jim Silverton > Cc: r-help@r-project.org > Subject: Re: [R] Update Packages error > > On Thu, Mar 29, 2012 at 9:41 PM, Jim Silverton > <jim.silver...@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 > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.