View source: R/reproducibility_tables.R
get_session_info | R Documentation |
Creating tables used at the end of reports, for reproducibility. Most of the information is based off of sessioninfo::session_info()
get_session_info()
Both tables usually printing with kable()
at the end of a report.
If any loaded packages have a DataVersion
field then the Software Package Version Information will contain a data.version
column.
Full Name is found in Windows via the net
command, and via ldap search in Linux and MACs. The ldap search will only work on SCHARPs network at Fred Hutching Cancer Research Center. If there is an error attempting to get the Full Name, the system usernam will be displayed instead.
list of length two, containing dataframe of Software Session Information and dataframe of Software Package Version Information
my_session_info <- get_session_info()
library(dplyr)
# Simple HTML Display
kableExtra::kable(my_session_info$platform_table, 'html',
caption = "Reproducibility Software Session Information") %>%
kableExtra::kable_styling()
kableExtra::kable(my_session_info$packages_table, 'html',
caption = "Reproducibility Software Package Version Information") %>%
kableExtra::kable_styling()
# Latex Display
kableExtra::kable(my_session_info$platform_table, 'latex', booktabs = TRUE,
linesep = '', caption = "Reproducibility Software Session Information") %>%
kableExtra::kable_styling(font_size = 7)
kableExtra::kable(my_session_info$packages_table, 'latex', booktabs = TRUE,
linesep = '', caption = "Reproducibility Software Package Version Information") %>%
kableExtra::kable_styling(font_size = 7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.