Update package R, which is lazy loaded

I have several unix servers that use the R package, which is installed in the shared folder of library R. Packages are lazy to load (by default) from this shared folder.

Now I want to update the package:

1) is it possible (and purely) to do this without closing all instances of R?

2) More precisely, the following concerns me:
2) a) A warning that I get from the user interface when I try to install a package that is already downloaded: enter image description here
2) b) From https://cran.r-project.org/doc/manuals/r-release/R-ints.html#Lazy-loading ,

When a package / namespace that uses it is loaded, the package / namespace environment is populated with promises for all named objects: when these promises are evaluated, they load the actual code from the database.

Does this mean that the R instance will be read again from the library folder during the actual evaluation of each object (in this case, it means that I need to either deactivate lazy loading or close all R instances before updating the package)

3) there is an alternative way to support R-packets in a network of servers that run scripts all the time, without having to install each server in turn)

Thanks for your input.

+1
source share
1 answer

You asked

1) is it possible (and purely) to do this without closing all instances of R?

and I can assure you that yes, this is how everything works and works everywhere.

Concerning

2) More precisely, the following concerns me:

you read it wrong. Restart R is simply recommended to ensure that a new package is downloaded, as you cannot insert it into the current session.

Further

3) there is an alternative way to support R-packets in a network of servers that run scripts all the time, without having to install each server in turn)

you do not need to take the server offline to update the user space package. For instance. we don’t even remove them offline when we, say, update the entire release of Ubuntu twice a year.

+2
source

Source: https://habr.com/ru/post/889372/


All Articles