Save a log to disk
log_save.RdSaves a log from .piplogenv to disk using the stamp package. Optionally
attach metadata and code hashes. If id lacks an extension, one is added
based on the format parameter.
Arguments
- name
Name of the log in memory (default:
getOption("pipfun.log.default", "default")).- id
File identifier or path (extension optional). Defaults to
name.- format
File format (default:
"qs2"). Used to add extension ifidlacks one.- metadata
Optional named list of metadata to attach to the saved file.
- code
Optional code object whose hash will be stored in metadata.
- alias
Optional stamp alias to select which catalog/versions to use.
- ...
Additional arguments forwarded to
stamp::st_save().
Value
Invisibly, the result returned by stamp::st_save().