R/xfaostat_helper_funcs.R
FF_download_RemoteArchive.Rd
FF_download_RemoteArchive: Download raw data from remote archive (Zenodo)
FF_download_RemoteArchive(
DATASETCODE = NULL,
RemoteArchiveURL = "https://zenodo.org/record/13941470/files/",
DATA_FOLDER = file.path("inst/extdata", DIR_RAW_DATA_FAOSTAT),
OverWrite = FALSE
)
Single dataset code in FAO metadata, e.g., QCL is the production dataset.
Zenodo URL, default (GCAM v7) = "https://zenodo.org/record/8260225/files/"
Folder stores raw data; default sets to DIR_RAW_DATA_FAOSTAT
If FALSE, check if the dataset exists and stop if exists; overwrite if TRUE