Restore an archived Parquet file to the active schema directory
Source:R/pq_archive_restore.R
pq_restore.RdMoves an archived Parquet file back into the schema directory, stripping
the timestamp suffix to recover the original filename. If a current file
already exists at the destination, it is archived first (when
archive = TRUE) or the function stops (when archive = FALSE).
Arguments
- file_basename
Basename of the archived file (with or without the
.parquetextension), e.g."company_20251109T072042Z".- schema
Schema name.
- data_dir
Root directory of the Parquet data repository. Defaults to the
DATA_DIRenvironment variable, with interactive setup when needed.- archive
If
TRUE(default), any existing file at the destination is archived before the restore. IfFALSE, the function stops if the destination already exists.- archive_dir
Name of the archive subdirectory. Defaults to
"archive".