save_session_info: Save R session information

Description Usage Arguments Details Value

View source: R/reproducibility.R

Description

Creates a dated text file (.txt) containing the contents of sessioninfo::session_info().

Usage

1
save_session_info(path_dir = here::here("progs", "session_info"))

Arguments

path_dir

The full path of the directory where the session information text file shall be written. If it doesn't exist, it is written with fs::dir_create().

Details

The date and time when this function was run is included in the resulting .txt file's name and first line. This date and time is obtained from Sys.time().

For the file name, hyphens (-) are removed from the date, spaces are replaced with underscores (_), and colons (:) are replaced with a modifier letter colon (U+A789).

Value

A list of two:

$ time : the value of Sys.time() that the function used

$ session_info() : the value of sessioninfo::session_info() that the function used


projects documentation built on April 24, 2021, 5:06 p.m.