write_sessionInfo: Write R session information for a script to a .txt file

write_sessionInfoR Documentation

Write R session information for a script to a .txt file

Description

Writes a .txt file of the output from utils::sessionInfo() with the file name ⁠[filename]_sessionInfo.txt⁠. By creating a log of the R session conditions a script was run with, results from the script can be reproduced in the future.

Usage

write_sessionInfo(filename, dir = NULL)

Arguments

filename

a string, the script file name (with or without .R extension)

dir

a string, the directory to write to, default is NULL which means the current working directory will be used

Value

nothing

See Also

convert_to_script()

Examples

path <- tempdir()
write_sessionInfo(filename = "test.R", dir = path)


sdtmval documentation built on Oct. 23, 2023, 5:10 p.m.