R Session Information

Query and print information about the current R session. It is similar to 'utils::sessionInfo()', but includes more information about packages, and where they were installed from.

Linux Build Status Windows Build status CRAN RStudio mirror downloads Coverage Status

Query and print information about the current R session. It is similar to utils::sessionInfo(), but includes more information about packages, and where they were installed from.




Example output:

─ Session info ───────────────────────────────────────────────────────────────
 setting  value
 version  R version 3.5.0 (2018-04-23)
 os       macOS Sierra 10.12.6
 system   x86_64, darwin15.6.0
 ui       X11
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       Europe/Brussels
 date     2018-08-09
─ Packages ───────────────────────────────────────────────────────────────────
 package     * version    date       source
 clisymbols    1.2.0      2017-05-21 CRAN (R 3.5.0)
 crayon        1.3.4      2017-09-16 CRAN (R 3.5.0)
 gitty         1.0.0      2018-07-16 Github (gaborcsardi/[email protected])
 memuse        4.0-0      2017-11-10 CRAN (R 3.5.0)
 prettycode  * 1.0.1      2017-12-12 CRAN (R 3.5.0)
 prompt        1.0.0      2018-07-16 Github (gaborcsardi/[email protected])
 sessioninfo 2018-08-09 local
 tracer      * 1.0.0      2017-01-28 CRAN (R 3.5.0)
 whisker       0.3-2      2013-04-28 CRAN (R 3.5.0)
 withr         2.1.2      2018-03-15 CRAN (R 3.5.0)

Copying to the clipboard

You can use the clipr package to copy the session info to the clipboard:


(The current clipr version prints a warning, but you can ignore that.)





  • package_info() and session_info() now detect locally installed packages correctly if they have an empty biocViews field in `DESCRIPTION (@llrs, #25)

  • package_info() and session_info() now handle the case when a loaded package was removed from the disk.


  • package_info() now has a dependencies argument, to filter the type of dependent packages in the output (#22).

  • session_info() and package_info() now show the library search path, and also which library each package was loaded from. They also warn if the on-disk version of the package has a different path than the loaded version (#9, #20).

  • package_info()'s ondiskversion entry is now correct.

  • session_info() and package_info() now verify the MD5 hashes of DLL files on Windows, and warns for micmatches, as these are usually broken packages (#12, #16).

  • We use now the cli package, instead of clisymbols, and this fixes printing bugs in LaTeX documents (#14).

  • session_info() and platform_info() now include the LC_CTYPE locale category (@patperry, #11)

  • session_info() and package_info() now print source of the CRAN packages in uppercase, always, even if they were installed by devtools.

  • session_info() and platform_info() now handle the case when utils::sessionInfo()$running is NULL (@HenrikBengtsson, #7).

  • session_info() and package_info() now only list loaded versions for namespaces which are already loaded. This only makes a difference if the pkgs argument is given (#4).

  • Do not consult the max.print option, for platform and package info (@jennybc, #13).


First public release.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.2.2 by Gábor Csárdi, 2 months ago

https://github.com/r-lib/sessioninfo#readme, https://r-lib.github.io/sessioninfo/

Report a bug at https://github.com/r-lib/sessioninfo/issues

Browse source code at https://github.com/cran/sessioninfo

Authors: Gábor Csárdi [cre] , Hadley Wickham [aut] , Winston Chang [aut] , Robert Flight [aut] , Kirill Müller [aut] , Jim Hester [aut] , R Core team [ctb]

Documentation:   PDF Manual  

GPL-2 license

Imports cli, tools, utils

Suggests callr, covr, mockery, reticulate, rmarkdown, testthat, withr

Imported by NACHO, SimDesign, codemetar, devtools, future.tests, projects, rcmdcheck, rdtLite.

Suggested by REDCapR, amt, baytrends, condTruncMVN, details, ggalluvial, ggforce, lime, matrixNormal, miWQS, pkgcache, reprex, runstats, salesforcer.

See at CRAN