Wrapper for session_info.

session_info(collapse = FALSE, title = "details", add_line = TRUE, ...)

Arguments

collapse

Wrap the session info output in a collapsible HTML element.

title

Title of the collapsed element.

add_line

Add a divider line after the session info.

...

Arguments passed on to sessioninfo::session_info

pkgs

Which packages to show. It may be:

  • NULL or "loaded": show all loaded packages,

  • "attached": show all attached packages,

  • "installed": show all installed packages,

  • a character vector of package names. Their (hard) dependencies are also shown by default, see the dependencies argument.

include_base

Include base packages in summary? By default this is false since base packages should always match the R version.

info

What information to show, it can be "auto" to choose automatically, "all" to show everything, or a character vector with elements from:

dependencies

Whether to include the (recursive) dependencies as well. See the dependencies argument of utils::install.packages().

to_file

Whether to print the session information to a file. If TRUE the name of the file will be session-info.txt, but to_file may also be a string to specify the file name.

Value

Null.

Examples

session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R Under development (unstable) (2024-03-28 r86224)
#>  os       Ubuntu 22.04.4 LTS
#>  system   x86_64, linux-gnu
#>  ui       X11
#>  language en
#>  collate  C
#>  ctype    en_US.UTF-8
#>  tz       UTC
#>  date     2024-04-01
#>  pandoc   3.1.1 @ /usr/local/bin/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package       * version     date (UTC) lib source
#>  Biobase         2.63.1      2024-03-29 [1] Bioconductor 3.19 (R 4.5.0)
#>  BiocBaseUtils   1.5.1       2024-03-08 [1] Bioconductor 3.19 (R 4.5.0)
#>  BiocCheck       1.39.27     2024-03-25 [1] Bioconductor 3.19 (R 4.5.0)
#>  BiocFileCache   2.11.2      2024-03-27 [1] Bioconductor 3.19 (R 4.5.0)
#>  BiocGenerics    0.49.1      2023-11-01 [1] Bioconductor
#>  BiocManager     1.30.22     2023-08-08 [1] CRAN (R 4.5.0)
#>  biocViews       1.71.1      2023-10-25 [1] Bioconductor
#>  bit             4.0.5       2022-11-15 [1] CRAN (R 4.4.0)
#>  bit64           4.0.5       2020-08-30 [1] CRAN (R 4.4.0)
#>  bitops          1.0-7       2021-04-24 [1] CRAN (R 4.4.0)
#>  blob            1.2.4       2023-03-17 [1] CRAN (R 4.4.0)
#>  cachem          1.0.8       2023-05-01 [2] CRAN (R 4.5.0)
#>  cli             3.6.2       2023-12-11 [2] CRAN (R 4.5.0)
#>  codetools       0.2-19      2023-02-01 [3] CRAN (R 4.5.0)
#>  colorspace      2.1-0       2023-01-23 [1] CRAN (R 4.4.0)
#>  curl            5.2.1       2024-03-01 [2] CRAN (R 4.5.0)
#>  data.table      1.15.4      2024-03-30 [1] CRAN (R 4.5.0)
#>  DBI             1.2.2       2024-02-16 [1] CRAN (R 4.5.0)
#>  dbplyr          2.5.0       2024-03-19 [1] CRAN (R 4.5.0)
#>  desc            1.4.3       2023-12-10 [2] CRAN (R 4.5.0)
#>  devoptera     * 0.99.1      2024-04-01 [1] Bioconductor
#>  devtools        2.4.5       2022-10-11 [2] CRAN (R 4.5.0)
#>  digest          0.6.35      2024-03-11 [2] CRAN (R 4.5.0)
#>  downlit         0.4.3       2023-06-29 [2] CRAN (R 4.5.0)
#>  dplyr           1.1.4       2023-11-17 [1] CRAN (R 4.4.0)
#>  ellipsis        0.3.2       2021-04-29 [2] CRAN (R 4.5.0)
#>  evaluate        0.23        2023-11-01 [2] CRAN (R 4.5.0)
#>  fansi           1.0.6       2023-12-08 [2] CRAN (R 4.5.0)
#>  farver          2.1.1       2022-07-06 [1] CRAN (R 4.4.0)
#>  fastmap         1.1.1       2023-02-24 [2] CRAN (R 4.5.0)
#>  filelock        1.0.3       2023-12-11 [1] CRAN (R 4.4.0)
#>  fs              1.6.3       2023-07-20 [2] CRAN (R 4.5.0)
#>  generics        0.1.3       2022-07-05 [1] CRAN (R 4.4.0)
#>  ggfun           0.1.4       2024-01-19 [1] CRAN (R 4.4.0)
#>  ggimage         0.3.3       2023-06-19 [1] CRAN (R 4.4.0)
#>  ggplot2         3.5.0       2024-02-23 [1] CRAN (R 4.5.0)
#>  ggplotify       0.1.2       2023-08-09 [1] CRAN (R 4.4.0)
#>  glue            1.7.0       2024-01-09 [2] CRAN (R 4.5.0)
#>  graph           1.81.0      2023-10-24 [1] Bioconductor
#>  gridGraphics    0.5-1       2020-12-13 [1] CRAN (R 4.4.0)
#>  gtable          0.3.4       2023-08-21 [1] CRAN (R 4.4.0)
#>  here            1.0.1       2020-12-13 [1] CRAN (R 4.4.0)
#>  hexbin          1.28.3      2023-03-21 [1] CRAN (R 4.4.0)
#>  hexSticker      0.4.9       2020-12-05 [1] CRAN (R 4.5.0)
#>  htmltools       0.5.8       2024-03-25 [2] CRAN (R 4.5.0)
#>  htmlwidgets     1.6.4       2023-12-06 [2] CRAN (R 4.5.0)
#>  httpuv          1.6.15      2024-03-26 [2] CRAN (R 4.5.0)
#>  httr            1.4.7       2023-08-15 [2] CRAN (R 4.5.0)
#>  httr2           1.0.0       2023-11-14 [2] CRAN (R 4.5.0)
#>  jsonlite        1.8.8       2023-12-04 [2] CRAN (R 4.5.0)
#>  knitr           1.45        2023-10-30 [2] CRAN (R 4.5.0)
#>  labeling        0.4.3       2023-08-29 [1] CRAN (R 4.4.0)
#>  later           1.3.2       2023-12-06 [2] CRAN (R 4.5.0)
#>  lattice         0.22-6      2024-03-20 [3] CRAN (R 4.5.0)
#>  lifecycle       1.0.4       2023-11-07 [2] CRAN (R 4.5.0)
#>  magick          2.8.3       2024-02-18 [1] CRAN (R 4.5.0)
#>  magrittr        2.0.3       2022-03-30 [2] CRAN (R 4.5.0)
#>  memoise         2.0.1       2021-11-26 [2] CRAN (R 4.5.0)
#>  mime            0.12        2021-09-28 [2] CRAN (R 4.5.0)
#>  miniUI          0.1.1.1     2018-05-18 [2] CRAN (R 4.5.0)
#>  munsell         0.5.0       2018-06-12 [1] CRAN (R 4.4.0)
#>  pillar          1.9.0       2023-03-22 [2] CRAN (R 4.5.0)
#>  pkgbuild        1.4.4       2024-03-17 [2] CRAN (R 4.5.0)
#>  pkgconfig       2.0.3       2019-09-22 [2] CRAN (R 4.5.0)
#>  pkgdown         2.0.7       2022-12-14 [1] CRAN (R 4.5.0)
#>  pkgload         1.3.4       2024-01-16 [2] CRAN (R 4.5.0)
#>  profvis         0.3.8       2023-05-02 [2] CRAN (R 4.5.0)
#>  promises        1.2.1       2023-08-10 [2] CRAN (R 4.5.0)
#>  purrr           1.0.2       2023-08-10 [2] CRAN (R 4.5.0)
#>  R.methodsS3     1.8.2       2022-06-13 [1] CRAN (R 4.4.0)
#>  R.oo            1.26.0      2024-01-24 [1] CRAN (R 4.4.0)
#>  R.utils         2.12.3      2023-11-18 [1] CRAN (R 4.4.0)
#>  R6              2.5.1       2021-08-19 [2] CRAN (R 4.5.0)
#>  ragg            1.3.0       2024-03-13 [2] CRAN (R 4.5.0)
#>  rappdirs        0.3.3       2021-01-31 [2] CRAN (R 4.5.0)
#>  RBGL            1.79.0      2023-10-24 [1] Bioconductor
#>  Rcpp            1.0.12      2024-01-09 [2] CRAN (R 4.5.0)
#>  RCurl           1.98-1.14   2024-01-09 [1] CRAN (R 4.4.0)
#>  remotes         2.5.0.9000  2024-04-01 [1] Github (r-lib/remotes@ac483e7)
#>  rlang           1.1.3       2024-01-10 [2] CRAN (R 4.5.0)
#>  rmarkdown       2.26        2024-03-05 [1] CRAN (R 4.5.0)
#>  rprojroot       2.0.4       2023-11-05 [2] CRAN (R 4.5.0)
#>  RSQLite         2.3.6       2024-03-31 [1] CRAN (R 4.5.0)
#>  rstudioapi      0.16.0      2024-03-24 [2] CRAN (R 4.5.0)
#>  RUnit           0.4.33      2024-02-22 [1] CRAN (R 4.5.0)
#>  scales          1.3.0       2023-11-28 [1] CRAN (R 4.4.0)
#>  sessioninfo     1.2.2       2021-12-06 [2] CRAN (R 4.5.0)
#>  shiny           1.8.1       2024-03-26 [2] CRAN (R 4.5.0)
#>  showtext        0.9-7       2024-03-02 [1] CRAN (R 4.5.0)
#>  showtextdb      3.0         2020-06-04 [1] CRAN (R 4.4.0)
#>  stringdist      0.9.12      2023-11-28 [1] CRAN (R 4.4.0)
#>  stringi         1.8.3       2023-12-11 [2] CRAN (R 4.5.0)
#>  stringr         1.5.1       2023-11-14 [2] CRAN (R 4.5.0)
#>  sysfonts        0.8.9       2024-03-02 [1] CRAN (R 4.5.0)
#>  systemfonts     1.0.6       2024-03-07 [2] CRAN (R 4.5.0)
#>  textshaping     0.3.7       2023-10-09 [2] CRAN (R 4.5.0)
#>  tibble          3.2.1       2023-03-20 [2] CRAN (R 4.5.0)
#>  tidyselect      1.2.1       2024-03-11 [1] CRAN (R 4.5.0)
#>  urlchecker      1.0.1       2021-11-30 [2] CRAN (R 4.5.0)
#>  usethis         2.2.3       2024-02-19 [2] CRAN (R 4.5.0)
#>  utf8            1.2.4       2023-10-22 [2] CRAN (R 4.5.0)
#>  vctrs           0.6.5       2023-12-01 [2] CRAN (R 4.5.0)
#>  whisker         0.4.1       2022-12-05 [2] CRAN (R 4.5.0)
#>  withr           3.0.0       2024-01-16 [2] CRAN (R 4.5.0)
#>  xfun            0.43        2024-03-25 [2] CRAN (R 4.5.0)
#>  XML             3.99-0.16.1 2024-01-22 [1] CRAN (R 4.4.0)
#>  xml2            1.3.6       2023-12-04 [2] CRAN (R 4.5.0)
#>  xtable          1.8-4       2019-04-21 [2] CRAN (R 4.5.0)
#>  yaml            2.3.8       2023-12-11 [2] CRAN (R 4.5.0)
#>  yulab.utils     0.1.4       2024-01-28 [1] CRAN (R 4.4.0)
#> 
#>  [1] /__w/_temp/Library
#>  [2] /usr/local/lib/R/site-library
#>  [3] /usr/local/lib/R/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────