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.
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.
devtools::install_github("r-lib/sessioninfo")
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)
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.)
GPL-2
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.