Inverse of outUpload(). Downloads one or more tar.gz archives from a Google Drive folder to a local directory, using reproducible::preProcess() (so re-runs hit the local copy when present). Vectorised: typically called with the multi-row dribble returned by outList() / outScenarios().

reGet(gFiles, destDir, overwrite = FALSE, verbose = TRUE)

Arguments

gFiles

Either a Google Drive dribble (e.g. the output of outList() / outScenarios()) or a character vector of Drive file IDs or URLs.

destDir

Character scalar. Local directory to write tarballs into. Created if it does not exist.

overwrite

Logical. Force re-download even if the local file exists. Default FALSE.

verbose

Logical. Print elapsed time per download. Default TRUE.

Value

A data.table with columns name and local_path, one row per downloaded file.