Basics with sessionInfo

library(details)

One the most basic and popular uses for details is to paste the sessioninfo at the bottom of a GitHub issue.

Pro tip: When using details in knitr/rmarkdown documents there is no need to set the knitr chunk options to results=‘asis’, there are already predefined print methods for these environments.


sessioninfo::session_info()%>%
  details::details(
    summary = 'Current session info',
    open    = TRUE
  )
Current session info

─ Session info ───────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.4.2 (2024-10-31)
 os       Ubuntu 24.04.1 LTS
 system   x86_64, linux-gnu
 ui       X11
 language (EN)
 collate  C
 ctype    en_US.UTF-8
 tz       Etc/UTC
 date     2024-11-07
 pandoc   3.2.1 @ /usr/local/bin/ (via rmarkdown)

─ Packages ───────────────────────────────────────────────────────────────────
 package     * version date (UTC) lib source
 bslib         0.8.0   2024-07-29 [2] RSPM (R 4.4.0)
 buildtools    1.0.0   2024-11-05 [3] local (/pkg)
 cachem        1.1.0   2024-05-16 [2] RSPM (R 4.4.0)
 cli           3.6.3   2024-06-21 [2] RSPM (R 4.4.0)
 clipr         0.8.0   2022-02-22 [2] RSPM (R 4.4.0)
 desc          1.4.3   2023-12-10 [2] RSPM (R 4.4.0)
 details     * 0.3.0   2024-11-07 [1] https://yonicd.r-universe.dev (R 4.4.2)
 digest        0.6.37  2024-08-19 [2] RSPM (R 4.4.0)
 evaluate      1.0.1   2024-10-10 [2] RSPM (R 4.4.0)
 fansi         1.0.6   2023-12-08 [2] RSPM (R 4.4.0)
 fastmap       1.2.0   2024-05-15 [2] RSPM (R 4.4.0)
 glue          1.8.0   2024-09-30 [2] RSPM (R 4.4.0)
 highr         0.11    2024-05-26 [2] RSPM (R 4.4.0)
 htmltools     0.5.8.1 2024-04-04 [2] RSPM (R 4.4.0)
 httr          1.4.7   2023-08-15 [2] RSPM (R 4.4.0)
 jquerylib     0.1.4   2021-04-26 [2] RSPM (R 4.4.0)
 jsonlite      1.8.9   2024-09-20 [2] RSPM (R 4.4.0)
 knitr         1.48    2024-07-07 [2] RSPM (R 4.4.0)
 lifecycle     1.0.4   2023-11-07 [2] RSPM (R 4.4.0)
 magrittr      2.0.3   2022-03-30 [2] RSPM (R 4.4.0)
 maketools     1.3.1   2024-11-05 [3] Github (jeroen/maketools@d46f92c)
 pillar        1.9.0   2023-03-22 [2] RSPM (R 4.4.0)
 pkgconfig     2.0.3   2019-09-22 [2] RSPM (R 4.4.0)
 png           0.1-8   2022-11-29 [2] RSPM (R 4.4.0)
 R6            2.5.1   2021-08-19 [2] RSPM (R 4.4.0)
 rlang         1.1.4   2024-06-04 [2] RSPM (R 4.4.0)
 rmarkdown   * 2.29    2024-11-04 [2] RSPM (R 4.4.0)
 sass          0.4.9   2024-03-15 [2] RSPM (R 4.4.0)
 sessioninfo   1.2.2   2021-12-06 [2] RSPM (R 4.4.0)
 sys           3.4.3   2024-10-04 [2] RSPM (R 4.4.0)
 tibble        3.2.1   2023-03-20 [2] RSPM (R 4.4.0)
 utf8          1.2.4   2023-10-22 [2] RSPM (R 4.4.0)
 vctrs         0.6.5   2023-12-01 [2] RSPM (R 4.4.0)
 withr         3.0.2   2024-10-28 [2] RSPM (R 4.4.0)
 xfun          0.49    2024-10-31 [2] RSPM (R 4.4.0)
 xml2          1.3.6   2023-12-04 [2] RSPM (R 4.4.0)
 yaml          2.3.10  2024-07-26 [2] RSPM (R 4.4.0)

 [1] /tmp/RtmpkAKU2k/Rinstb871e3aa9e1
 [2] /github/workspace/pkglib
 [3] /usr/local/lib/R/site-library
 [4] /usr/lib/R/site-library
 [5] /usr/lib/R/library

──────────────────────────────────────────────────────────────────────────────