You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some distributed file systems do not support opening files in append
mode. These file systems are often used in data analysis cloud
platforms.
R package installation relies on appending to files, for instance
collating R code or when installing help pages.
Therefore, packages can't be installed in those filesystems. Instead,
users are forced to install packages into a local directory and
copy them afterwards.
However, the current package installation procedure already uses
a 00LOCK directory to install packages there, before copying them
to the final library directory.
By globally modifying the location of the 00LOCK directory, it is
possible to use a local filesystem to install packages, where
append is allowed. The installation process takes care of copying
the resulting package into the final out directory.
This change introduces the environment variable PKG_LOCKDIR_PREFIX
that, when set to a directory like "/tmp/r-lockdir", uses that
root path to create all 00LOCK folders.
This allows to install packages on file systems that do not support
opening files in append mode.
0 commit comments