get_session_info: Get Reproducibility Tables

View source: R/reproducibility_tables.R

get_session_infoR Documentation

Get Reproducibility Tables

Description

Creating tables used at the end of reports, for reproducibility. Most of the information is based off of sessioninfo::session_info()

Usage

get_session_info()

Details

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.

Value

list of length two, containing dataframe of Software Session Information and dataframe of Software Package Version Information

Examples


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)


FredHutch/VISCfunctions documentation built on Oct. 14, 2024, 11:33 p.m.