Retrieve full file_ref metadata for an upstream output
get_file_ref.RdReturns the original file_ref structure (a list containing a one-row tibble
with columns path, bytes, sha256, written,
existed) for a given key. Use this when you need metadata beyond
just the file path (e.g., file size or whether the file was freshly written).
Examples
if (FALSE) { # \dontrun{
# In a script_stage script:
path <- get_arg("lss.betas1") # returns "/path/to/file.rds"
ref <- get_file_ref("lss.betas1") # returns list(tibble(path, bytes, ...))
ref[[1]]$bytes # file size in bytes
} # }