Load a log from disk
log_load.RdLoads a previously saved piplog from disk using the stamp package.
Validates the loaded object and restores it to .piplogenv with a given name.
If id lacks an extension, one is added based on the format parameter.
Usage
log_load(
id,
name = id,
version = NULL,
format = "qs2",
overwrite = FALSE,
verbose = TRUE,
alias = NULL
)Arguments
- id
File identifier or path (extension optional).
- name
Name to assign to the log in memory (default:
id).- version
Optional version identifier or
"available"to list versions. Passed tostamp::st_load(). Default loads the latest version.- format
File format (default:
"qs2"). Used to add extension ifidlacks one.- overwrite
Logical: whether to overwrite an existing log in memory with the same name (default:
FALSE).- verbose
Logical: whether to announce loading progress (default:
TRUE).- alias
Optional stamp alias to select which catalog/versions to use.
Value
The loaded piplog object (visibly), or if version = "available",
a data.table of available versions with a vintage column.