write_sessionInfo | R Documentation |
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.
write_sessionInfo(filename, dir = NULL)
filename |
a string, the script file name (with or without .R extension) |
dir |
a string, the directory to write to, default is |
nothing
convert_to_script()
path <- tempdir()
write_sessionInfo(filename = "test.R", dir = path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.