preface: i’m an os x user coming to linux, so excuse my ignorance in advance
I’ve installed R using synaptic and now i’m trying to install packages.
I open R then try
install.packages("some_package")
system tries to default to /site-library, then tells me it’s not writable, then asks about making a personal library?
Should I just make site-library writable? Or is there something more to this?
The directory
/usr/share/local/lib/Ris the default location; the directory is has ownershiproot:staffby default. If you add yourself to groupstaff(easiest: by editing/etc/groupand/etc/gshadow) you can write there and you do not needsudopowers for the installation of packages. That is what I do.Alternatively, do
apt-get install littlerand copy the example file/usr/share/doc/littler/examples/install.rto/usr/local/binandchmod 755it. The you can just dosudo install.r lattice ggplot2to take two popular examples.BTW Ubuntu 8.1 does not exist as a version. Maybe you meant 8.10? Consider upgrading to 9.10 …
Edit: Also have a look at this recent SO question.