[R-sig-Debian] update.packages() as ordinary user, /usr/lib/R/site-library is not writable
Chris Evans
chrishold at psyctc.org
Tue Sep 20 22:20:07 CEST 2011
I am moving from windoze on a Dell laptop to Debian but I seem to have
hit a snag for R. I managed to find the information to point an
/etc/apt/sources.list entry at my local CRAN repository and have
installed R 2.13.1 for squeeze from the Bristol UK repository.
I installed a number of the additional R packages using synaptic which
reported no errors but when I run my first update.packages() as an
ordinary user I get this:
The downloaded packages are in
‘/tmp/Rtmp9LYziU/downloaded_packages’
Warning in install.packages(update[instlib == l, "Package"], l,
contriburl = contriburl, :
'lib = "/usr/lib/R/library"' is not writable
Error in install.packages(update[instlib == l, "Package"], l, contriburl
= contriburl, :
unable to install packages
In addition: Warning messages:
1: In install.packages(update[instlib == l, "Package"], l, contriburl =
contriburl, :
installation of package 'rgl' had non-zero exit status
2: In install.packages(update[instlib == l, "Package"], l, contriburl =
contriburl, :
installation of package 'XML' had non-zero exit status
Although all the compilations have run through, presumably with errors
for rgl and XML, clearly the "not writable" status of /usr/lib/R/library
has genuinely prevented the update.
I thought I'd seen strong advice here recently against updating
libraries as root so I'm intrigued about this. Can someone advise me
what I should do?
Thanks in advance and huge thanks to all who do the porting to Debian
and generally make R so good.
Chris
--
Chris Evans <chris at psyctc.org> Skype: chris-psyctc
Consultant Psychiatrist in Psychotherapy, Notts. PDD network;
Professor, Psychotherapy, Nottingham University
*If I am writing from one of those roles, it will be clear. Otherwise*
*my views are my own and not representative of those institutions *
If you have difficulty Emailing me on this address or getting a reply,
send again but cc to: chris dot evans at nottshc dot nhs dot uk
and to: c dot evans at nottingham dot ac dot uk
More information about the R-SIG-Debian
mailing list