Print version information about R, the OS and attached or loaded packages.
sessionInfo(package = NULL)
# S3 method for sessionInfo
print(x, locale = TRUE,
RNG = !identical(x$RNGkind, .RNGdefaults), …)
# S3 method for sessionInfo
toLatex(object, locale = TRUE,
RNG = !identical(object$RNGkind, .RNGdefaults), …)
osVersiona character vector naming installed packages, or NULL
(the default) meaning all attached packages.
an object of class "sessionInfo".
an object of class "sessionInfo".
show locale information?
show information on RNGkind()? Defaults to true
iff it differs from the R version's default, i.e., RNGversion(*).
currently not used.
sessionInfo() returns an object of class "sessionInfo"
which has print and
toLatex methods. This is a list with components
a list, the result of calling R.Version().
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).
a character string (or possibly NULL), the same
as osVersion, see below.
a character vector, the result of calling RNGkind().
a character string, the result of calling
getOption("matprod").
a character string, the result of calling
extSoftVersion()["BLAS"].
a character string, the result of calling La_library().
a character string, the result of calling Sys.getlocale().
a character vector of base packages which are attached.
(not always present): a character vector of other attached packages.
(not always present): a named list of the results of
calling packageDescription on packages whose
namespaces are loaded but are not attached.
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.
# NOT RUN {
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
# }
Run the code above in your browser using DataLab