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.

Installation

devtools::install_github("r-lib/sessioninfo")

Usage

Example output:

sessioninfo::session_info()
─ 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   1.0.1.9000 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:

clipr::write_clip(session_info())

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

License

GPL-2

News

1.1.0

  • 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).

1.0.0

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.

install.packages("sessioninfo")

1.1.1 by Gábor Csárdi, 11 days ago


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


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 , R core , Hadley Wickham , Winston Chang , Robert M Flight , Kirill Müller , Jim Hester


Documentation:   PDF Manual  


GPL-2 license


Imports cli, tools, utils, withr

Suggests callr, covr, mockery, testthat


Imported by codemetar, devtools, rcmdcheck.

Suggested by ggalluvial.


See at CRAN