sessionInfo | R Documentation |
Print version information about R, the OS and attached or loaded packages.
sessionInfo(package = NULL) ## S3 method for class 'sessionInfo' print(x, locale = TRUE, RNG = !identical(x$RNGkind, .RNGdefaults), ...) ## S3 method for class 'sessionInfo' toLatex(object, locale = TRUE, RNG = !identical(object$RNGkind, .RNGdefaults), ...) osVersion
package |
a character vector naming installed packages, or |
x |
an object of class |
object |
an object of class |
locale |
show locale and code page information? |
RNG |
show information on |
... |
currently not used. |
sessionInfo()
returns an object of class "sessionInfo"
which has print
and
toLatex
methods. This is a list with components
R.version |
a list, the result of calling |
platform |
a character string describing the platform R was built under. Where sub-architectures are in use this is of the form platform/sub-arch (nn-bit). |
running |
a character string (or possibly |
RNGkind |
a character vector, the result of calling |
matprod |
a character string, the result of calling
|
BLAS |
a character string, the result of calling
|
LAPACK |
a character string, the result of calling |
locale |
a character string, the result of calling |
basePkgs |
a character vector of base packages which are attached. |
otherPkgs |
(not always present): a character vector of other attached packages. |
loadedOnly |
(not always present): a named list of the results of
calling |
osVersion
osVersion
is a character string (or possibly NULL
on
bizarre platforms) describing the OS and version which it is running
under (as distinct from built under). This attempts to name a Linux
distribution and give the OS name on an Apple Mac.
It is the same as sessionInfo()$running
and created when loading the utils package.
Windows may report unexpected versions: see the help for
win.version
.
How OSes identify themselves and their versions can be arcane: where
possible osVersion
(and hence sessionInfo()$running
) uses
a human-readable form.
Where R was compiled under macOS 10.x (as the CRAN Intel distributions have been) but running under ‘Big Sur’ or later, macOS reports itself as 10.16 (which R recognizes as ‘Big Sur/Monterey’) and not 11.x or 12.x.
The information on ‘loaded’ packages and namespaces is the current version installed at the location the package was loaded from: it can be wrong if another process has been changing packages during the session.
R.version
sI <- sessionInfo() sI # The same, showing the RNGkind, but not the locale : print(sI, RNG = TRUE, locale = FALSE) toLatex(sI, locale = FALSE) # shortest; possibly desirable at end of report
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.