returnSessionInfo: Output session information

View source: R/returnSessionInfo.R

returnSessionInfoR Documentation

Output session information

Description

Print general R session info, current date/time, and loaded git repo versions to stdout or file. Note this uses sessionInfo() from base R, but an argument could be made to use session_info() from devtools.

Usage

returnSessionInfo(outDir_v = NULL, loadDirs_v = NULL, args_lsv = NULL)

Arguments

outDir_v

optional directory to write information to. Default is to print to stdout

loadDirs_v

vector of directory paths that have been sourced in script. Note, if using the utility function sourceDir, these will be the same paths.

args_lsv

optional list of arguments used as input. Could be from optparse (easiest), or can hand-make a list of arguments.

Value

multiple lines of text printed to stdout or written to file

Examples

returnSessionInfo()
returnSessionInfo("~/Desktop/")

weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.