![US Attorney General Jeff Sessions takes a sip of water.](https://media.giphy.com/media/xUA7aLFXBV7OLv8O5O/giphy.gif)
US Attorney-General Jeff Sessions-Info (via Giphy)
Session info?
What
Session info is just some details about your working environment like your version of R, the locale it’s running from and any loaded packages.
It gives a snapshot to help people reproduce what you’ve done or spot any anomalies. You might get asked for this if someone is diagnosing your R problem. You may also see it at the end of blog posts or reports.
You might typically print this to the console with the base function sessionInfo()
, but it gives a lot of information by default. Other functions have been created to make the output more friendly.
This post
I’ve been using sessionInfo()
, but read about Yihui’s session_info()
function in his {xfun} package and saw Mat at machinegurning.com using session_info()
from {devtools}.
I want to see the outputs side-by-side for my own curiosity.
Load packages
Let’s grab some packages from different sources to see how they’re represented in the output of each session info function.
Click to expand package-installation details
# From CRAN
# install.packages("package-name")
library(dplyr)
library(purrr)
library(tidyxl)
# Dev versions of packages from rOpenSci
# remotes::install_github("ropensci/packagename")
library(rfishbase)
library(rgbif)
library(helminthR)
# Bioconductor
# Install instructions here: https://bioconductor.org/install/
# BiocManager::install(c("GenomicFeatures", "AnnotationDbi"))
library(GenomicFeatures)
library(AnnotationDbi)
For a bit of diversity, I’ve grabbed some packages from:
- CRAN – the typical source for R packages
- GitHub – for packages in development or that haven’t had a release anywhere else
- Bioconductor – an open-dev project for packages ‘for the analysis and comprehension of high-throughput genomic data’
Functions demo
We’ll be looking at:
Click the package name to jump to that section.
1. Function utils::sessionInfo()
From the documentation for the function:
Print version information about R, the OS and attached or loaded packages.
What do you get? Loads of stuff:
- R version, platform and OS
- matrix products, BLAS and LAPACK
- locale (where you’re running R from)
- packages – attached base packages, other attached packages, and loaded packages via namespace (but not attached) in separate sections with their version numbers
Maybe that’s too much stuff. Also I don’t really know what the BLAS and LAPACK stuff is; something to do with linear algebra. There’s also no notation to say where the packages came from (CRAN, GitHub or Bioconductor). But it’s pretty human-readable.
Click to expand the output from this function
utils::sessionInfo()
## R version 3.6.1 (2019-07-05)
## Platform: x86_64-apple-darwin15.6.0 (64-bit)
## Running under: macOS Sierra 10.12.6
##
## Matrix products: default
## BLAS: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
## LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
##
## locale:
## [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
##
## attached base packages:
## [1] stats4 parallel stats graphics grDevices utils datasets
## [8] methods base
##
## other attached packages:
## [1] GenomicFeatures_1.38.0 AnnotationDbi_1.48.0 Biobase_2.46.0
## [4] GenomicRanges_1.38.0 GenomeInfoDb_1.22.0 IRanges_2.20.1
## [7] S4Vectors_0.24.1 BiocGenerics_0.32.0 helminthR_1.0.7
## [10] rgbif_1.4.1.996 rfishbase_3.1.0 tidyxl_1.0.4
## [13] purrr_0.3.3 dplyr_0.8.3
##
## loaded via a namespace (and not attached):
## [1] matrixStats_0.55.0 bitops_1.0-6
## [3] oai_0.3.0 bit64_0.9-7
## [5] progress_1.2.2 httr_1.4.1
## [7] gh_1.0.1 tools_3.6.1
## [9] backports_1.1.5 R6_2.4.1
## [11] rgeos_0.5-2 DBI_1.1.0
## [13] lazyeval_0.2.2 colorspace_1.4-1
## [15] sp_1.3-2 tidyselect_0.2.5
## [17] prettyunits_1.0.2 bit_1.1-14
## [19] curl_4.3 compiler_3.6.1
## [21] rvest_0.3.5 xml2_1.2.2
## [23] DelayedArray_0.12.1 rtracklayer_1.46.0
## [25] bookdown_0.16 scales_1.1.0
## [27] readr_1.3.1 askpass_1.1
## [29] rappdirs_0.3.1 stringr_1.4.0
## [31] digest_0.6.23 Rsamtools_2.2.1
## [33] rmarkdown_2.0 XVector_0.26.0
## [35] pkgconfig_2.0.3 htmltools_0.4.0
## [37] dbplyr_1.4.2 rlang_0.4.2
## [39] RSQLite_2.1.5 jsonlite_1.6
## [41] BiocParallel_1.20.1 RCurl_1.95-4.12
## [43] magrittr_1.5 GenomeInfoDbData_1.2.2
## [45] Matrix_1.2-17 Rcpp_1.0.3
## [47] munsell_0.5.0 lifecycle_0.1.0
## [49] stringi_1.4.3 whisker_0.4
## [51] yaml_2.2.0 SummarizedExperiment_1.16.1
## [53] zlibbioc_1.32.0 plyr_1.8.5
## [55] BiocFileCache_1.10.2 grid_3.6.1
## [57] blob_1.2.0 crayon_1.3.4
## [59] lattice_0.20-38 Biostrings_2.54.0
## [61] hms_0.5.2 zeallot_0.1.0
## [63] knitr_1.26 pillar_1.4.3
## [65] biomaRt_2.42.0 XML_3.98-1.20
## [67] glue_1.3.1 evaluate_0.14
## [69] blogdown_0.17 arkdb_0.0.5
## [71] data.table_1.12.8 vctrs_0.2.1
## [73] gtable_0.3.0 openssl_1.4.1
## [75] assertthat_0.2.1 ggplot2_3.2.1
## [77] xfun_0.11 geoaxe_0.1.0
## [79] tibble_2.1.3 GenomicAlignments_1.22.1
## [81] memoise_1.1.0
2. Function devtools::session_info()
From the documentation for the function:
This is
sessionInfo()
re-written from scratch to both exclude data that’s rarely useful (e.g., the full collate string or base packages loaded) and include stuff you’d like to know (e.g., where a package was installed from).
What do you get? You get basically what’s in sessionInfo()
- sections split into ‘session info’ and ‘packages’
- version, system, UI, language, locale, timezone and date
- package names with version number, date and source (CRAN, Bioconductor, GitHub, local)
It’s even more human-readable in the packages section, where the output is in table format and in alphabetical order. In particular, there’s a column to tell you where the package came from. For example, see how the {helminthR} package is from github (ropensci/helminthR@435371d)
and there’s an asterisk in the row to show you it’ was attached.’s been attached in the session.
Click to expand the output from this function
devtools::session_info()
## ─ Session info ───────────────────────────────────────────────────────────────
## setting value
## version R version 3.6.1 (2019-07-05)
## os macOS Sierra 10.12.6
## system x86_64, darwin15.6.0
## ui X11
## language (EN)
## collate en_GB.UTF-8
## ctype en_GB.UTF-8
## tz Europe/London
## date 2020-01-01
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib
## AnnotationDbi * 1.48.0 2019-10-29 [1]
## arkdb 0.0.5 2018-10-31 [1]
## askpass 1.1 2019-01-13 [1]
## assertthat 0.2.1 2019-03-21 [1]
## backports 1.1.5 2019-10-02 [1]
## Biobase * 2.46.0 2019-10-29 [1]
## BiocFileCache 1.10.2 2019-11-08 [1]
## BiocGenerics * 0.32.0 2019-10-29 [1]
## BiocParallel 1.20.1 2019-12-21 [1]
## biomaRt 2.42.0 2019-10-29 [1]
## Biostrings 2.54.0 2019-10-29 [1]
## bit 1.1-14 2018-05-29 [1]
## bit64 0.9-7 2017-05-08 [1]
## bitops 1.0-6 2013-08-17 [1]
## blob 1.2.0 2019-07-09 [1]
## blogdown 0.17 2019-11-13 [1]
## bookdown 0.16 2019-11-22 [1]
## callr 3.4.0 2019-12-09 [1]
## cli 2.0.0 2019-12-09 [1]
## colorspace 1.4-1 2019-03-18 [1]
## crayon 1.3.4 2017-09-16 [1]
## curl 4.3 2019-12-02 [1]
## data.table 1.12.8 2019-12-09 [1]
## DBI 1.1.0 2019-12-15 [1]
## dbplyr 1.4.2 2019-06-17 [1]
## DelayedArray 0.12.1 2019-12-17 [1]
## desc 1.2.0 2018-05-01 [1]
## devtools 2.2.1 2019-09-24 [1]
## digest 0.6.23 2019-11-23 [1]
## dplyr * 0.8.3 2019-07-04 [1]
## ellipsis 0.3.0 2019-09-20 [1]
## evaluate 0.14 2019-05-28 [1]
## fansi 0.4.0 2018-10-05 [1]
## fs 1.3.1 2019-05-06 [1]
## GenomeInfoDb * 1.22.0 2019-10-29 [1]
## GenomeInfoDbData 1.2.2 2020-01-01 [1]
## GenomicAlignments 1.22.1 2019-11-12 [1]
## GenomicFeatures * 1.38.0 2019-10-29 [1]
## GenomicRanges * 1.38.0 2019-10-29 [1]
## geoaxe 0.1.0 2016-02-19 [1]
## ggplot2 3.2.1 2019-08-10 [1]
## gh 1.0.1 2017-07-16 [1]
## glue 1.3.1 2019-03-12 [1]
## gtable 0.3.0 2019-03-25 [1]
## helminthR * 1.0.7 2020-01-01 [1]
## hms 0.5.2 2019-10-30 [1]
## htmltools 0.4.0 2019-10-04 [1]
## httr 1.4.1 2019-08-05 [1]
## IRanges * 2.20.1 2019-11-20 [1]
## jsonlite 1.6 2018-12-07 [1]
## knitr 1.26 2019-11-12 [1]
## lattice 0.20-38 2018-11-04 [2]
## lazyeval 0.2.2 2019-03-15 [1]
## lifecycle 0.1.0 2019-08-01 [1]
## magrittr 1.5 2014-11-22 [1]
## Matrix 1.2-17 2019-03-22 [2]
## matrixStats 0.55.0 2019-09-07 [1]
## memoise 1.1.0 2017-04-21 [1]
## munsell 0.5.0 2018-06-12 [1]
## oai 0.3.0 2019-09-07 [1]
## openssl 1.4.1 2019-07-18 [1]
## pillar 1.4.3 2019-12-20 [1]
## pkgbuild 1.0.6 2019-10-09 [1]
## pkgconfig 2.0.3 2019-09-22 [1]
## pkgload 1.0.2 2018-10-29 [1]
## plyr 1.8.5 2019-12-10 [1]
## prettyunits 1.0.2 2015-07-13 [1]
## processx 3.4.1 2019-07-18 [1]
## progress 1.2.2 2019-05-16 [1]
## ps 1.3.0 2018-12-21 [1]
## purrr * 0.3.3 2019-10-18 [1]
## R6 2.4.1 2019-11-12 [1]
## rappdirs 0.3.1 2016-03-28 [1]
## Rcpp 1.0.3 2019-11-08 [1]
## RCurl 1.95-4.12 2019-03-04 [1]
## readr 1.3.1 2018-12-21 [1]
## remotes 2.1.0 2019-06-24 [1]
## rfishbase * 3.1.0 2020-01-01 [1]
## rgbif * 1.4.1.996 2020-01-01 [1]
## rgeos 0.5-2 2019-10-03 [1]
## rlang 0.4.2 2019-11-23 [1]
## rmarkdown 2.0 2019-12-12 [1]
## rprojroot 1.3-2 2018-01-03 [1]
## Rsamtools 2.2.1 2019-11-06 [1]
## RSQLite 2.1.5 2019-12-18 [1]
## rtracklayer 1.46.0 2019-10-29 [1]
## rvest 0.3.5 2019-11-08 [1]
## S4Vectors * 0.24.1 2019-12-01 [1]
## scales 1.1.0 2019-11-18 [1]
## sessioninfo 1.1.1 2018-11-05 [1]
## sp 1.3-2 2019-11-07 [1]
## stringi 1.4.3 2019-03-12 [1]
## stringr 1.4.0 2019-02-10 [1]
## SummarizedExperiment 1.16.1 2019-12-19 [1]
## testthat 2.3.1 2019-12-01 [1]
## tibble 2.1.3 2019-06-06 [1]
## tidyselect 0.2.5 2018-10-11 [1]
## tidyxl * 1.0.4 2019-01-02 [1]
## usethis 1.5.1 2019-07-04 [1]
## vctrs 0.2.1 2019-12-17 [1]
## whisker 0.4 2019-08-28 [1]
## withr 2.1.2 2018-03-15 [1]
## xfun 0.11 2019-11-12 [1]
## XML 3.98-1.20 2019-06-06 [1]
## xml2 1.2.2 2019-08-09 [1]
## XVector 0.26.0 2019-10-29 [1]
## yaml 2.2.0 2018-07-25 [1]
## zeallot 0.1.0 2018-01-28 [1]
## zlibbioc 1.32.0 2019-10-29 [1]
## source
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## Bioconductor
## Bioconductor
## Bioconductor
## Bioconductor
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.1)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## Bioconductor
## Bioconductor
## Bioconductor
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Github (ropensci/helminthr@960592c)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.1)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.1)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Github (ropensci/rfishbase@b07f138)
## Github (ropensci/rgbif@b310c6f)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.1)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
##
## [1] /Users/matt.dray/Library/R/3.6/library
## [2] /Library/Frameworks/R.framework/Versions/3.6/Resources/library
3. Function sessioninfo::session_info()
From the CRAN page for the package:
It is similar to
utils::sessionInfo()
, but includes more information about packages, and where they were installed from.
What do you get? Basically the same as utils::sessionInfo()
. Note that the final column of output – the source
column is wrapped below.
Click to expand the output from this function
sessioninfo::session_info()
## ─ Session info ───────────────────────────────────────────────────────────────
## setting value
## version R version 3.6.1 (2019-07-05)
## os macOS Sierra 10.12.6
## system x86_64, darwin15.6.0
## ui X11
## language (EN)
## collate en_GB.UTF-8
## ctype en_GB.UTF-8
## tz Europe/London
## date 2020-01-01
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib
## AnnotationDbi * 1.48.0 2019-10-29 [1]
## arkdb 0.0.5 2018-10-31 [1]
## askpass 1.1 2019-01-13 [1]
## assertthat 0.2.1 2019-03-21 [1]
## backports 1.1.5 2019-10-02 [1]
## Biobase * 2.46.0 2019-10-29 [1]
## BiocFileCache 1.10.2 2019-11-08 [1]
## BiocGenerics * 0.32.0 2019-10-29 [1]
## BiocParallel 1.20.1 2019-12-21 [1]
## biomaRt 2.42.0 2019-10-29 [1]
## Biostrings 2.54.0 2019-10-29 [1]
## bit 1.1-14 2018-05-29 [1]
## bit64 0.9-7 2017-05-08 [1]
## bitops 1.0-6 2013-08-17 [1]
## blob 1.2.0 2019-07-09 [1]
## blogdown 0.17 2019-11-13 [1]
## bookdown 0.16 2019-11-22 [1]
## callr 3.4.0 2019-12-09 [1]
## cli 2.0.0 2019-12-09 [1]
## colorspace 1.4-1 2019-03-18 [1]
## crayon 1.3.4 2017-09-16 [1]
## curl 4.3 2019-12-02 [1]
## data.table 1.12.8 2019-12-09 [1]
## DBI 1.1.0 2019-12-15 [1]
## dbplyr 1.4.2 2019-06-17 [1]
## DelayedArray 0.12.1 2019-12-17 [1]
## desc 1.2.0 2018-05-01 [1]
## devtools 2.2.1 2019-09-24 [1]
## digest 0.6.23 2019-11-23 [1]
## dplyr * 0.8.3 2019-07-04 [1]
## ellipsis 0.3.0 2019-09-20 [1]
## evaluate 0.14 2019-05-28 [1]
## fansi 0.4.0 2018-10-05 [1]
## fs 1.3.1 2019-05-06 [1]
## GenomeInfoDb * 1.22.0 2019-10-29 [1]
## GenomeInfoDbData 1.2.2 2020-01-01 [1]
## GenomicAlignments 1.22.1 2019-11-12 [1]
## GenomicFeatures * 1.38.0 2019-10-29 [1]
## GenomicRanges * 1.38.0 2019-10-29 [1]
## geoaxe 0.1.0 2016-02-19 [1]
## ggplot2 3.2.1 2019-08-10 [1]
## gh 1.0.1 2017-07-16 [1]
## glue 1.3.1 2019-03-12 [1]
## gtable 0.3.0 2019-03-25 [1]
## helminthR * 1.0.7 2020-01-01 [1]
## hms 0.5.2 2019-10-30 [1]
## htmltools 0.4.0 2019-10-04 [1]
## httr 1.4.1 2019-08-05 [1]
## IRanges * 2.20.1 2019-11-20 [1]
## jsonlite 1.6 2018-12-07 [1]
## knitr 1.26 2019-11-12 [1]
## lattice 0.20-38 2018-11-04 [2]
## lazyeval 0.2.2 2019-03-15 [1]
## lifecycle 0.1.0 2019-08-01 [1]
## magrittr 1.5 2014-11-22 [1]
## Matrix 1.2-17 2019-03-22 [2]
## matrixStats 0.55.0 2019-09-07 [1]
## memoise 1.1.0 2017-04-21 [1]
## munsell 0.5.0 2018-06-12 [1]
## oai 0.3.0 2019-09-07 [1]
## openssl 1.4.1 2019-07-18 [1]
## pillar 1.4.3 2019-12-20 [1]
## pkgbuild 1.0.6 2019-10-09 [1]
## pkgconfig 2.0.3 2019-09-22 [1]
## pkgload 1.0.2 2018-10-29 [1]
## plyr 1.8.5 2019-12-10 [1]
## prettyunits 1.0.2 2015-07-13 [1]
## processx 3.4.1 2019-07-18 [1]
## progress 1.2.2 2019-05-16 [1]
## ps 1.3.0 2018-12-21 [1]
## purrr * 0.3.3 2019-10-18 [1]
## R6 2.4.1 2019-11-12 [1]
## rappdirs 0.3.1 2016-03-28 [1]
## Rcpp 1.0.3 2019-11-08 [1]
## RCurl 1.95-4.12 2019-03-04 [1]
## readr 1.3.1 2018-12-21 [1]
## remotes 2.1.0 2019-06-24 [1]
## rfishbase * 3.1.0 2020-01-01 [1]
## rgbif * 1.4.1.996 2020-01-01 [1]
## rgeos 0.5-2 2019-10-03 [1]
## rlang 0.4.2 2019-11-23 [1]
## rmarkdown 2.0 2019-12-12 [1]
## rprojroot 1.3-2 2018-01-03 [1]
## Rsamtools 2.2.1 2019-11-06 [1]
## RSQLite 2.1.5 2019-12-18 [1]
## rtracklayer 1.46.0 2019-10-29 [1]
## rvest 0.3.5 2019-11-08 [1]
## S4Vectors * 0.24.1 2019-12-01 [1]
## scales 1.1.0 2019-11-18 [1]
## sessioninfo 1.1.1 2018-11-05 [1]
## sp 1.3-2 2019-11-07 [1]
## stringi 1.4.3 2019-03-12 [1]
## stringr 1.4.0 2019-02-10 [1]
## SummarizedExperiment 1.16.1 2019-12-19 [1]
## testthat 2.3.1 2019-12-01 [1]
## tibble 2.1.3 2019-06-06 [1]
## tidyselect 0.2.5 2018-10-11 [1]
## tidyxl * 1.0.4 2019-01-02 [1]
## usethis 1.5.1 2019-07-04 [1]
## vctrs 0.2.1 2019-12-17 [1]
## whisker 0.4 2019-08-28 [1]
## withr 2.1.2 2018-03-15 [1]
## xfun 0.11 2019-11-12 [1]
## XML 3.98-1.20 2019-06-06 [1]
## xml2 1.2.2 2019-08-09 [1]
## XVector 0.26.0 2019-10-29 [1]
## yaml 2.2.0 2018-07-25 [1]
## zeallot 0.1.0 2018-01-28 [1]
## zlibbioc 1.32.0 2019-10-29 [1]
## source
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## Bioconductor
## Bioconductor
## Bioconductor
## Bioconductor
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.1)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## Bioconductor
## Bioconductor
## Bioconductor
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Github (ropensci/helminthr@960592c)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.1)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.1)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Github (ropensci/rfishbase@b07f138)
## Github (ropensci/rgbif@b310c6f)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.1)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
## CRAN (R 3.6.0)
## CRAN (R 3.6.0)
## Bioconductor
##
## [1] /Users/matt.dray/Library/R/3.6/library
## [2] /Library/Frameworks/R.framework/Versions/3.6/Resources/library
4. Function xfun::session_info()
From Yihui Xie’s Introduction to {xfun} page:
…it is rarely useful to print out the names of base R packages, or information about the matrix products / BLAS / LAPACK. Often times I want additional information in the session information, such as the Pandoc version when rmarkdown is used.
What do you get? Basically utils::sessionInfo()
but no matrix products, BLAS or LAPACK info, plus all the packages are listed together with their version numbers. You also can’t see where the package came from (CRAN, GitHub or Bioconductor). It lacks some human-readability compared to the functions in {devtools} and {sessioninfo}, but is clearly enough for Yihui – his package contains ‘miscellaneous functions that [he] use[s] by [him]self from time to time’.
Click to expand the output from this function
xfun::session_info()
## R version 3.6.1 (2019-07-05)
## Platform: x86_64-apple-darwin15.6.0 (64-bit)
## Running under: macOS Sierra 10.12.6
##
## Locale: en_GB.UTF-8 / en_GB.UTF-8 / en_GB.UTF-8 / C / en_GB.UTF-8 / en_GB.UTF-8
##
## Package version:
## AnnotationDbi_1.48.0 arkdb_0.0.5
## askpass_1.1 assertthat_0.2.1
## backports_1.1.5 base64enc_0.1.3
## BH_1.72.0.2 Biobase_2.46.0
## BiocFileCache_1.10.2 BiocGenerics_0.32.0
## BiocParallel_1.20.1 biomaRt_2.42.0
## Biostrings_2.54.0 bit_1.1-14
## bit64_0.9-7 bitops_1.0-6
## blob_1.2.0 blogdown_0.17
## bookdown_0.16 brew_1.0.6
## callr_3.4.0 cli_2.0.0
## clipr_0.7.0 clisymbols_1.2.0
## colorspace_1.4-1 commonmark_1.7
## compiler_3.6.1 covr_3.4.0
## crayon_1.3.4 crosstalk_1.0.0
## crul_0.9.0 curl_4.3
## data.table_1.12.8 DBI_1.1.0
## dbplyr_1.4.2 DelayedArray_0.12.1
## desc_1.2.0 devtools_2.2.1
## digest_0.6.23 dplyr_0.8.3
## DT_0.11 ellipsis_0.3.0
## evaluate_0.14 fansi_0.4.0
## farver_2.0.1 fastmap_1.0.1
## formatR_1.7 fs_1.3.1
## futile.logger_1.4.3 futile.options_1.0.1
## GenomeInfoDb_1.22.0 GenomeInfoDbData_1.2.2
## GenomicAlignments_1.22.1 GenomicFeatures_1.38.0
## GenomicRanges_1.38.0 geoaxe_0.1.0
## ggplot2_3.2.1 gh_1.0.1
## git2r_0.26.1 glue_1.3.1
## graphics_3.6.1 grDevices_3.6.1
## grid_3.6.1 gtable_0.3.0
## helminthR_1.0.7 highr_0.8
## hms_0.5.2 htmltools_0.4.0
## htmlwidgets_1.5.1 httpcode_0.2.0
## httpuv_1.5.2 httr_1.4.1
## ini_0.3.1 IRanges_2.20.1
## jsonlite_1.6 knitr_1.26
## labeling_0.3 lambda.r_1.2.4
## later_1.0.0 lattice_0.20-38
## lazyeval_0.2.2 lifecycle_0.1.0
## magrittr_1.5 markdown_1.1
## MASS_7.3.51.4 Matrix_1.2-17
## matrixStats_0.55.0 memoise_1.1.0
## methods_3.6.1 mgcv_1.8.28
## mime_0.8 munsell_0.5.0
## nlme_3.1.140 oai_0.3.0
## openssl_1.4.1 parallel_3.6.1
## pillar_1.4.3 piton_0.1.1
## pkgbuild_1.0.6 pkgconfig_2.0.3
## pkgload_1.0.2 plogr_0.2.0
## plyr_1.8.5 praise_1.0.0
## prettyunits_1.0.2 processx_3.4.1
## progress_1.2.2 promises_1.1.0
## ps_1.3.0 purrr_0.3.3
## R6_2.4.1 rappdirs_0.3.1
## rcmdcheck_1.3.3 RColorBrewer_1.1.2
## Rcpp_1.0.3 RCurl_1.95-4.12
## readr_1.3.1 remotes_2.1.0
## reshape2_1.4.3 rex_1.1.2
## rfishbase_3.1.0 rgbif_1.4.1.996
## rgeos_0.5-2 Rhtslib_1.18.0
## rlang_0.4.2 rmarkdown_2.0
## roxygen2_7.0.2 rprojroot_1.3-2
## Rsamtools_2.2.1 RSQLite_2.1.5
## rstudioapi_0.10 rtracklayer_1.46.0
## rversions_2.0.1 rvest_0.3.5
## S4Vectors_0.24.1 scales_1.1.0
## selectr_0.4.2 servr_0.15
## sessioninfo_1.1.1 shiny_1.4.0
## snow_0.4.3 sourcetools_0.1.7
## sp_1.3-2 splines_3.6.1
## stats_3.6.1 stats4_3.6.1
## stringi_1.4.3 stringr_1.4.0
## SummarizedExperiment_1.16.1 sys_3.3
## testthat_2.3.1 tibble_2.1.3
## tidyselect_0.2.5 tidyxl_1.0.4
## tinytex_0.18 tools_3.6.1
## triebeard_0.3.0 urltools_1.7.3
## usethis_1.5.1 utf8_1.1.4
## utils_3.6.1 vctrs_0.2.1
## viridisLite_0.3.0 whisker_0.4
## wicket_0.4.0 withr_2.1.2
## xfun_0.11 XML_3.98-1.20
## xml2_1.2.2 xopen_1.0.0
## xtable_1.8.4 XVector_0.26.0
## yaml_2.2.0 zeallot_0.1.0
## zlibbioc_1.32.0
Conclusion
Yep, they basically do the same thing with slight differences. I personally like the idea of having some kind of table-like output for easy readability, so I’ll probably go with {devtools} as I often have it loaded anyway.