Re: [R] /usr/local/lib/R/site-library is not writable

2021-04-08 Thread Jan van der Laan
I would actually go a step in the other direction: per project libraries. For example by adding a .Rprofile file to your project directory. This ensures that everybody working on a project uses the same version of the packages (even on different machines e.g. on shared folders). This can g

Re: [R] /usr/local/lib/R/site-library is not writable

2021-04-07 Thread Dirk Eddelbuettel
Hi Gene, "It's complicated". (Not really, but listen for a sec...) We need to ship a default policy that makes sense for all / most situations. So - users cannot write into /usr/local/lib/R/site-library -- unless they are set up to, but adding them to the 'group' that owns that directory -

Re: [R] /usr/local/lib/R/site-library is not writable

2021-04-07 Thread Jeff Newmiller
1. Use a personal library. Mucking with the default library puts you at risk of changing file permissions on your personal files inadvertently and making them unusable by your normal user. Even if you did alter your user permissions so you could mess with it without elevating privileges, POSIX i

Re: [R] /usr/local/lib/R/site-library is not writable

2021-04-07 Thread Jim Lemon
Hi Gene, This is probably not best practice, but I install packages as root, which allows me to write into the default library. The restriction on non-root users being blocked from making changes to appications is pretty standard. Jim On Thu, Apr 8, 2021 at 8:18 AM Gene Leynes wrote: > > Hello R

[R] /usr/local/lib/R/site-library is not writable

2021-04-07 Thread Gene Leynes
Hello R Community, I've been using R for a long time, and this is a question that still makes me think twice every single time I install R, which is more and more often . The first search hit is this StackOverflow question: https://stackoverflow.com/questions/32540919/library-is-not-writable The