utils (version 3.3)

sessionInfo: Collect Information About the Current R Session

Description

Print version information about R, the OS and attached or loaded packages.

Usage

sessionInfo(package = NULL)
## S3 method for class 'sessionInfo':
print(x, locale = TRUE, ...)
## S3 method for class 'sessionInfo':
toLatex(object, locale = TRUE, ...)

Arguments

package
a character vector naming installed packages, or NULL (the default) meaning all attached packages.
x
an object of class "sessionInfo".
object
an object of class "sessionInfo".
locale
show locale information?
...
currently not used.

Value

  • An object of class "sessionInfo", which has a print method. This is a list with components
  • R.versiona list, the result of calling R.Version().
  • platforma character string describing the platform. Where sub-architectures are in use this is of the form platform/sub-arch (nn-bit).
  • runninga character string describing the OS and version which it is running under (as distinct from compiled under).
  • localea character string, the result of calling Sys.getlocale().
  • basePkgsa 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 packageDescription on packages whose namespaces are loaded but are not attached.

See Also

R.version

Examples

Run this code
sessionInfo()
toLatex(sessionInfo(), locale = FALSE)

Run the code above in your browser using DataCamp Workspace