Collect (and print) information about the current R session and
environment, using sessionInfo() and more mostly
low-level and platform dependent information.
isRshared() is a utility called from sessionInfoX().
sessionInfoX(pkgs = NULL, list.libP = FALSE, extraR.env = TRUE)# S3 method for sessionInfoX
print(x, locale = TRUE, RLIBS = TRUE, Renv = TRUE, ...)
isRshared(platform = .Platform)
For isRshared(), a logical indicating if R has
been installed as “shared”, i.e., linked to libR* shared
library.
For sessionInfoX(), an object of S3 class "sessionInfoX", a list
with components (there may be more, experimental and not yet listed here):
simply the value of sessionInfo().
the value of Sys.info().
the value of capabilities().
the value of .Machine.
for R 4.3.0 and newer, the value of R_compiled_by().
for R 3.2.0 and newer, the value of extSoftVersion().
for R 3.2.0 and newer, the value of grSoftVersion().
for R 3.2.0 and newer and when tcltk is loaded,
the Tcl version (tclVersion()).
for R 3.0.3 and newer, the value of La_version().
for R 3.1.3 and newer, the value of pcre_config().
If pkgs was non-empty, a named
list of packageDescription()s for each
entry in pkgs.
the value of .libPaths().
a character vector of entries from
Sys.getenv("R_LIBS"), typically very similar to the
libPaths component.
simply a normalizePath()ed version of RLIBS.
a named character vector with the “important” R
environment variables R_ENVIRON, R_PROFILE,
R_CHECK_ENVIRON.
if extraR.env was true, a named character vector
of “all R related” environment variables, as specified in
extraR.env's description above.
(not available on Windows, where it is conceptually always true:)
logical indicating if the version of R is
“shared”.
NULL (default), TRUE or a
character vector of R package names, whose
packageDescription()s are wanted. No packages by
default, TRUE takes all currently loaded pkgs.
a logical indicating if for all
.libPaths entries, the files should be listed via
list.files.
logical indicating if all environment
variables should be recorded which start with "R_" or
"_R_".
typically the result of sessionInfoX().
logical, passed to print.sessionInfo()
indicating if the locale information should be printed.
logical indicating if the information about R_LIBS should be printed.
logical indicating if the information about R environment variables should be printed.
passed to print methods.
Martin Maechler, December 2015 ff.
six0 <- sessionInfoX()
six0$shared # useful (for some, e.g., MM) on Unix alikes
sixN <- sessionInfoX("nlme", list.libP = TRUE)
sixN # -> print() method for "sessionInfoX"
names(sixN)
str(sixN, max = 1)# outline of lower-level structure
str(sixN$pkgDescr) # list with one component "nlme"
Run the code above in your browser using DataLab