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.1.0 (2021-05-18)
 os       macOS Big Sur 10.16         
 system   x86_64, darwin17.0          
 ui       X11                         
 language (EN)                        
 collate  C                           
 ctype    en_US.UTF-8                 
 tz       America/New_York            
 date     2022-03-27                  

─ Packages ───────────────────────────────────────────────────────────────────
 package     * version date       lib source            
 bslib         0.3.1   2021-10-06 [3] standard (@0.3.1) 
 cli           3.2.0   2022-02-14 [3] standard (@3.2.0) 
 clipr         0.7.1   2020-10-08 [3] standard (@0.7.1) 
 crayon        1.5.0   2022-02-14 [3] standard (@1.5.0) 
 desc          1.4.1   2022-03-06 [3] standard (@1.4.1) 
 details     * 0.3.0   2022-03-27 [1] local             
 digest        0.6.27  2020-10-24 [3] standard (@0.6.27)
 ellipsis      0.3.2   2021-04-29 [3] standard (@0.3.2) 
 evaluate      0.14    2019-05-28 [3] standard (@0.14)  
 fansi         0.5.0   2021-05-25 [3] standard (@0.5.0) 
 fastmap       1.1.0   2021-01-25 [3] standard (@1.1.0) 
 highr         0.9     2021-04-16 [3] standard (@0.9)   
 htmltools     0.5.2   2021-08-25 [3] standard (@0.5.2) 
 httr          1.4.2   2020-07-20 [3] standard (@1.4.2) 
 jquerylib     0.1.4   2021-04-26 [3] standard (@0.1.4) 
 jsonlite      1.7.2   2020-12-09 [3] standard (@1.7.2) 
 knitr         1.37    2021-12-16 [3] standard (@1.37)  
 lifecycle     1.0.0   2021-02-15 [3] standard (@1.0.0) 
 magrittr      2.0.1   2020-11-17 [3] standard (@2.0.1) 
 pillar        1.6.4   2021-10-18 [3] standard (@1.6.4) 
 pkgconfig     2.0.3   2019-09-22 [3] standard (@2.0.3) 
 png           0.1-7   2013-12-03 [3] standard (@0.1-7) 
 R6            2.5.0   2020-10-28 [3] standard (@2.5.0) 
 rlang         0.4.11  2021-04-30 [3] standard (@0.4.11)
 rmarkdown     2.13    2022-03-10 [3] standard (@2.13)  
 rprojroot     2.0.2   2020-11-15 [3] standard (@2.0.2) 
 rstudioapi    0.13    2020-11-12 [3] standard (@0.13)  
 sass          0.4.0   2021-05-12 [3] standard (@0.4.0) 
 sessioninfo   1.1.1   2018-11-05 [3] CRAN (R 4.1.0)    
 stringi       1.7.6   2021-11-29 [3] standard (@1.7.6) 
 stringr       1.4.0   2019-02-10 [3] standard (@1.4.0) 
 tibble        3.1.6   2021-11-07 [3] standard (@3.1.6) 
 utf8          1.2.1   2021-03-12 [3] standard (@1.2.1) 
 vctrs         0.3.8   2021-04-29 [3] standard (@0.3.8) 
 withr         2.5.0   2022-03-03 [3] standard (@2.5.0) 
 xfun          0.30    2022-03-02 [3] standard (@0.30)  
 xml2          1.3.2   2020-04-23 [3] standard (@1.3.2) 
 yaml          2.3.5   2022-02-21 [3] standard (@2.3.5) 

[1] /private/var/folders/kx/t4h_mm1910sb7vhm_gnfnx2c0000gn/T/RtmpoMXkqb/Rinst99c1a4dbe10
[2] /private/var/folders/kx/t4h_mm1910sb7vhm_gnfnx2c0000gn/T/RtmpIz59Ob/temp_libpath8a3063ff4841
[3] /Users/yonis/Library/R/x86_64/4.1/library
[4] /Library/Frameworks/R.framework/Versions/4.1/Resources/library