I am thinking of having a site installation of R, with a shared library of R packages. Several computers would access this library so that everybody share the same setup.
The issue is that I have noticed that sometimes you cannot update the packages because another instance of R is locking the libs. I can't ask everybody to close its instance of R because there are sometimes long simulations.
Is there a set of best practice for site installation of R packages and is there a way to make R access its libs in read only mode?
You must be talking about Windows, without mentioning it, because what you describe has already been working on Unix for many, many years.
A common solution is to have /usr/local/lib/R/site-library/
exported by NFS, and shared by many clients. I have set up solutions like this several times and it takes exactly zero additional effort from the R side.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With