Skip to content

Commit b7fac98

Browse files
author
Sergio Oller Moreno
committed
NEWS and R-Admin documentation
1 parent 7b7291c commit b7fac98

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

doc/NEWS.Rd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,15 @@
423423
424424
\item There is preliminary support for C++26 with GCC \eqn{>=} 14, Apple
425425
\command{clang++} \eqn{>=} 16 and \I{LLVM} \command{clang++} \eqn{>=} 17.
426+
427+
\item \code{install.packages()} supports setting a different path for the
428+
intermediate \code{00LOCK} directories through the environment variable
429+
\code{R_LOCKDIR_PREFIX}. This helps source package installation in some
430+
distributed filesystems available in cloud environments like databricks.
431+
Check the
432+
\dQuote{R Installation and Administration} manual for further details on
433+
this option.
434+
426435
}
427436
}
428437

doc/manual/R-admin.texi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,6 +2061,20 @@ comparable age to your version of @R{}).
20612061
Naive users sometimes forget that as well as installing a package, they
20622062
have to use @code{library} to make its functionality available.
20632063

2064+
The package installation process has some standard requirements on the
2065+
file system where packages are installed. Specifically, when a \emph{source
2066+
package} needs to be installed, R needs to be able
2067+
to open files in append mode \code{open(filename, "a")}. R also expects to
2068+
be able to perform atomic directory moves during package installation
2069+
to ensure correct error recovery from package installation errors (see
2070+
\uref{https://developer.r-project.org/Blog/public/2019/02/14/staged-install/index.html}).
2071+
Both requirements are fullfilled by POSIX and Windows filesystems, but not by
2072+
some distributed file systems. In scenarios where opening append mode is not available, the
2073+
@env{R_LOCKDIR_PREFIX} environment variable can be set to specify the absolute path to
2074+
a different directory (in a compliant file system) where the package can be preinstalled
2075+
before being moved to its final destination. While this approach makes package installation
2076+
in those file systems possible, the error recovery capabilities will not be as robust as
2077+
on supported filesystems.
20642078

20652079
@node Windows packages
20662080
@subsection Windows

0 commit comments

Comments
 (0)