简体   繁体   中英

update R packages while R is running

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM