utils_saveMeta: Save file with metadata

Description Usage Arguments Value Examples

Description

saves the following metadata . filename (if savefnc is not NULL) or else . current date and time . sessionInfo() #sessioninfo::session_info() . github log, if current or parent dir is a github dir

Usage

1
utils_saveMeta(savefnc = NULL, doPrint = F, path_log = NULL, ...)

Arguments

savefnc

a function to write some file to disk. If given as object is converted to character, default NULL

doPrint

print output to screen? useful if directin Rscript stdout to a log file (&>), default F

path_log

specify log file path; defaults to creating a file in current working dir, default NULL

...

named arguments to savefnc

Value

None

Examples

1
2
3
4
utils_saveMeta(savefnc=ggplot2::ggsave, doPrint=F, path_log = "~/log.txt", width=10)
TODO add pander pandoc markdown output option?
TODO add MD5SUM save
TODO add overwrite argument

CBMR-Single-Cell-Omics-Platform/SCOPfunctions documentation built on May 29, 2021, 3:52 p.m.