epi_utils_log: Save a log of an R session

Description Usage Arguments Value Author(s) See Also Examples

View source: R/epi_utils_log.R

Description

epi_utils_log() is a convenience function to log details of an R session.

Usage

1
epi_utils_log(output_prefix = NULL)

Arguments

output_prefix

File name as string, '_log.txt' is appended to a log file. Default is e.g. 'session_date_log.txt' eg 'session_2019-03-01_log.txt'

Value

Saves a log file to disk

Author(s)

Antonio J Berlanga-Taylor <https://github.com/AntonioJBT/episcout>

See Also

sessionInfo, epi_utils_session.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

x <- stats::runif(20)
y <- list(a = 1, b = TRUE, c = "oops")
# See objects to save:
ls()
objects_to_save <- c('x', 'y')
epi_utils_session(output_prefix = 'xy',
                  objects_to_save = objects_to_save
                 )
epi_utils_log('xy')

## End(Not run)

AntonioJBT/episcout documentation built on Nov. 7, 2019, 5:34 p.m.