aL3xa gives (IMHO) bad advice. Do not mess with /usr
which is handled by the package management system. Instead, use the facility provided by /usr/local/lib/R/site-library
.
That latter directory is already searched by default. All you need to do is to add yourself to group staff
as that group has write-rights there -- try adduser yourid staff
where yourid
is your user name on the system. Afterwards you should be able to install there without problems.
Another thing you may like on Ubuntu is apt-get install littler
and then use the install.r
and upgrade.r
helper scripts from the examples directory. I use them all the time.