sessionInfoX.RdCollect (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 class 'sessionInfoX'
print(x, locale = TRUE, RLIBS = TRUE, Renv = TRUE, ...)
isRshared(platform = .Platform)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.
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”.
six0 <- sessionInfoX()
six0$shared # useful (for some, e.g., MM) on Unix alikes
#> NULL
sixN <- sessionInfoX("nlme", list.libP = TRUE)
sixN # -> print() method for "sessionInfoX"
#> Extended sessionInfo():
#> -----------------------
#> specific packageDescription()s:
#> $nlme
#> Package: nlme
#> Version: 3.1-164
#> Date: 2023-11-27
#> Priority: recommended
#> Title: Linear and Nonlinear Mixed Effects Models
#> Authors@R: c(person("José", "Pinheiro", role = "aut", comment = "S
#> version"), person("Douglas", "Bates", role = "aut", comment =
#> "up to 2007"), person("Saikat", "DebRoy", role = "ctb", comment
#> = "up to 2002"), person("Deepayan", "Sarkar", role = "ctb",
#> comment = "up to 2005"), person("EISPACK authors", role =
#> "ctb", comment = "src/rs.f"), person("Siem", "Heisterkamp",
#> role = "ctb", comment = "Author fixed sigma"), person("Bert",
#> "Van Willigen",role = "ctb", comment = "Programmer fixed
#> sigma"), person("Johannes", "Ranke", role = "ctb", comment =
#> "varConstProp()"), person("R Core Team", email =
#> "R-core@R-project.org", role = c("aut", "cre")))
#> Contact: see 'MailingList'
#> Description: Fit and compare Gaussian linear and nonlinear
#> mixed-effects models.
#> Depends: R (>= 3.5.0)
#> Imports: graphics, stats, utils, lattice
#> Suggests: Hmisc, MASS, SASmixed
#> LazyData: yes
#> Encoding: UTF-8
#> License: GPL (>= 2)
#> BugReports: https://bugs.r-project.org
#> MailingList: R-help@r-project.org
#> URL: https://svn.r-project.org/R-packages/trunk/nlme/
#> NeedsCompilation: yes
#> Packaged: 2023-11-27 10:37:08 UTC; hornik
#> Author: José Pinheiro [aut] (S version), Douglas Bates [aut] (up to
#> 2007), Saikat DebRoy [ctb] (up to 2002), Deepayan Sarkar [ctb]
#> (up to 2005), EISPACK authors [ctb] (src/rs.f), Siem
#> Heisterkamp [ctb] (Author fixed sigma), Bert Van Willigen [ctb]
#> (Programmer fixed sigma), Johannes Ranke [ctb]
#> (varConstProp()), R Core Team [aut, cre]
#> Maintainer: R Core Team <R-core@R-project.org>
#> Repository: CRAN
#> Date/Publication: 2023-11-27 15:26:12 UTC
#> Built: R 4.4.1; x86_64-pc-linux-gnu; 2024-08-22 01:56:37 UTC; unix
#>
#> -- File: /opt/R/4.4.1/lib/R/library/nlme/Meta/package.rds
#>
#> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#>
#> Capabilities:
#> jpeg png tiff tcltk X11 aqua
#> X X X X - -
#> http/ftp sockets libxml fifo cledit iconv
#> X X - X - X
#> NLS Rprof profmem cairo ICU long.double
#> X X X X X X
#> libcurl
#> X
#> Sys.info:
#> nodename ip-10-2-72-104
#> user andrew
#> .Machine: List of 29
#> $ double.eps : num 2.22e-16
#> $ double.neg.eps : num 1.11e-16
#> $ double.xmin : num 2.23e-308
#> $ double.xmax : num 1.8e+308
#> $ double.base : int 2
#> $ double.digits : int 53
#> $ double.rounding : int 5
#> $ double.guard : int 0
#> $ double.ulp.digits : int -52
#> $ double.neg.ulp.digits : int -53
#> $ double.exponent : int 11
#> $ double.min.exp : int -1022
#> $ double.max.exp : int 1024
#> $ integer.max : int 2147483647
#> $ sizeof.long : int 8
#> $ sizeof.longlong : int 8
#> $ sizeof.longdouble : int 16
#> $ sizeof.pointer : int 8
#> $ sizeof.time_t : int 8
#> $ longdouble.eps : num 1.08e-19
#> $ longdouble.neg.eps : num 5.42e-20
#> $ longdouble.digits : int 64
#> $ longdouble.rounding : int 5
#> $ longdouble.guard : int 0
#> $ longdouble.ulp.digits : int -63
#> $ longdouble.neg.ulp.digits: int -64
#> $ longdouble.exponent : int 15
#> $ longdouble.min.exp : int -16382
#> $ longdouble.max.exp : int 16384
#>
#> R was compiled by:
#> C gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
#> Fortran GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04)
#> 11.4.0
#> LAPACK version: 3.10.0
#> External software (versions):
#> zlib 1.2.11
#> bzlib 1.0.8, 13-Jul-2019
#> xz 5.2.5
#> libdeflate 1.10
#> PCRE 10.39 2021-10-29
#> ICU 70.1
#> TRE TRE 0.8.0 R_fixes (BSD)
#> iconv glibc 2.35
#> readline 8.1
#> BLAS /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
#> Graphical software (versions):
#> cairo 1.16.0
#> cairoFT
#> pango 1.50.6
#> libpng 1.6.37
#> jpeg 8.0
#> libtiff LIBTIFF, Version 4.3.0
#>
#> PCRE (regex) config.: ("UTF-8" = TRUE, "Unicode properties" = TRUE, JIT = TRUE, stack = FALSE)
#> R executable linked against libR.* ['is R shared']: TRUE
#>
#> R_LIBS:
#> libPath [.libPaths()] contents in addition to R_LIBS and .Library:
#> [1] "/tmp/RtmpzVnqYA/temp_libpath28dbf4fab1050"
#> [2] "/cluster-data/user-homes/andrew/projects/prism-pkgdocs-build/installed-pkgs/2025-08-20/sfsmisc_1.1-21_lib"
#> Main R env. variables (for more, inspect the 'xR.env' component):
#> [,1]
#> R_ENVIRON ""
#> R_PROFILE ""
#> R_CHECK_ENVIRON ""
#> ---------------- standard sessionInfo():
#> R version 4.4.1 (2024-06-14)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 22.04.5 LTS
#>
#> Matrix products: default
#> BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
#> LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so; LAPACK version 3.10.0
#>
#> locale:
#> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
#> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=C
#> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
#> [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
#> [9] LC_ADDRESS=C LC_TELEPHONE=C
#> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
#>
#> time zone: Etc/UTC
#> tzcode source: system (glibc)
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] gmp_0.7-5 lokern_1.1-12 MASS_7.3-60.2 cluster_2.1.6 rpart_4.1.23
#> [6] sfsmisc_1.1-22
#>
#> loaded via a namespace (and not attached):
#> [1] Matrix_1.7-0 Rmpfr_1.1-1 compiler_4.4.1 xml2_1.4.0
#> [5] splines_4.4.1 systemfonts_1.2.3 textshaping_1.0.1 yaml_2.3.10
#> [9] fastmap_1.2.0 lattice_0.22-6 R6_2.6.1 curl_7.0.0
#> [13] httr2_1.2.1 knitr_1.50 tibble_3.3.0 desc_1.4.3
#> [17] pillar_1.11.0 rlang_1.1.6 cachem_1.1.0 xfun_0.53
#> [21] fs_1.6.6 memoise_2.0.1 cli_3.6.5 pkgdown_2.1.3
#> [25] withr_3.0.2 magrittr_2.0.3 digest_0.6.37 grid_4.4.1
#> [29] rappdirs_0.3.3 lifecycle_1.0.4 vctrs_0.6.5 downlit_0.4.4
#> [33] evaluate_1.0.4 glue_1.8.0 whisker_0.4.1 ragg_1.4.0
#> [37] fansi_1.0.6 rmarkdown_2.29 purrr_1.1.0 tools_4.4.1
#> [41] pkgconfig_2.0.3 htmltools_0.5.8.1
names(sixN)
#> [1] "sInfo" "sysInf" "capabilities" "Machine" "compiledBy"
#> [6] "extSoft" "grSoft" "tclVersion" "LAPACK" "pcre"
#> [11] "isRshared" "pkgDescr" "libPath" ".Library" "RLIBS"
#> [16] "n.RLIBS" "list.libP" "R.env" "xR.env"
str(sixN, max = 1)# outline of lower-level structure
#> List of 19
#> $ sInfo :List of 14
#> ..- attr(*, "class")= chr "sessionInfo"
#> $ sysInf : Named chr [1:8] "Linux" "6.2.0-1018-aws" "#18~22.04.1-Ubuntu SMP Wed Jan 10 22:54:16 UTC 2024" "ip-10-2-72-104" ...
#> ..- attr(*, "names")= chr [1:8] "sysname" "release" "version" "nodename" ...
#> $ capabilities: Named logi [1:19] TRUE TRUE TRUE TRUE FALSE FALSE ...
#> ..- attr(*, "names")= chr [1:19] "jpeg" "png" "tiff" "tcltk" ...
#> $ Machine :List of 29
#> $ compiledBy : Named chr [1:2] "gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0" "GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
#> ..- attr(*, "names")= chr [1:2] "C" "Fortran"
#> $ extSoft : Named chr [1:10] "1.2.11" "1.0.8, 13-Jul-2019" "5.2.5" "1.10" ...
#> ..- attr(*, "names")= chr [1:10] "zlib" "bzlib" "xz" "libdeflate" ...
#> $ grSoft : Named chr [1:6] "1.16.0" "" "1.50.6" "1.6.37" ...
#> ..- attr(*, "names")= chr [1:6] "cairo" "cairoFT" "pango" "libpng" ...
#> $ tclVersion : NULL
#> $ LAPACK : chr "3.10.0"
#> $ pcre : Named logi [1:4] TRUE TRUE TRUE FALSE
#> ..- attr(*, "names")= chr [1:4] "UTF-8" "Unicode properties" "JIT" "stack"
#> $ isRshared : logi TRUE
#> $ pkgDescr :List of 1
#> $ libPath : chr [1:3] "/tmp/RtmpzVnqYA/temp_libpath28dbf4fab1050" "/cluster-data/user-homes/andrew/projects/prism-pkgdocs-build/installed-pkgs/2025-08-20/sfsmisc_1.1-21_lib" "/opt/R/4.4.1/lib/R/library"
#> $ .Library : chr "/opt/R/4.4.1/lib/R/library"
#> $ RLIBS : chr(0)
#> $ n.RLIBS : chr(0)
#> $ list.libP :List of 3
#> $ R.env : Named chr [1:3] "" "" ""
#> ..- attr(*, "names")= chr [1:3] "R_ENVIRON" "R_PROFILE" "R_CHECK_ENVIRON"
#> $ xR.env : 'Dlist' Named chr [1:23] "" "false" "/usr/bin/bzip2" "/opt/R/4.4.1/lib/R/doc" ...
#> ..- attr(*, "names")= chr [1:23] "R_ARCH" "R_BROWSER" "R_BZIPCMD" "R_DOC_DIR" ...
#> - attr(*, "class")= chr "sessionInfoX"
str(sixN$pkgDescr) # list with one component "nlme"
#> List of 1
#> $ nlme:List of 24
#> ..$ Package : chr "nlme"
#> ..$ Version : chr "3.1-164"
#> ..$ Date : chr "2023-11-27"
#> ..$ Priority : chr "recommended"
#> ..$ Title : chr "Linear and Nonlinear Mixed Effects Models"
#> ..$ Authors@R : chr "c(person(\"José\", \"Pinheiro\", role = \"aut\", comment = \"S version\"),\n person(\"Douglas\", \""| __truncated__
#> ..$ Contact : chr "see 'MailingList'"
#> ..$ Description : chr "Fit and compare Gaussian linear and nonlinear mixed-effects models."
#> ..$ Depends : chr "R (>= 3.5.0)"
#> ..$ Imports : chr "graphics, stats, utils, lattice"
#> ..$ Suggests : chr "Hmisc, MASS, SASmixed"
#> ..$ LazyData : chr "yes"
#> ..$ Encoding : chr "UTF-8"
#> ..$ License : chr "GPL (>= 2)"
#> ..$ BugReports : chr "https://bugs.r-project.org"
#> ..$ MailingList : chr "R-help@r-project.org"
#> ..$ URL : chr "https://svn.r-project.org/R-packages/trunk/nlme/"
#> ..$ NeedsCompilation: chr "yes"
#> ..$ Packaged : chr "2023-11-27 10:37:08 UTC; hornik"
#> ..$ Author : chr "José Pinheiro [aut] (S version),\n Douglas Bates [aut] (up to 2007),\n Saikat DebRoy [ctb] (up to 2002),\n D"| __truncated__
#> ..$ Maintainer : chr "R Core Team <R-core@R-project.org>"
#> ..$ Repository : chr "CRAN"
#> ..$ Date/Publication: chr "2023-11-27 15:26:12 UTC"
#> ..$ Built : chr "R 4.4.1; x86_64-pc-linux-gnu; 2024-08-22 01:56:37 UTC; unix"
#> ..- attr(*, "class")= chr "packageDescription"
#> ..- attr(*, "file")= chr "/opt/R/4.4.1/lib/R/library/nlme/Meta/package.rds"