An optional id column (also accepted as googledriveId, googledrive_id,
driveId or gid) holding the Google Drive file id enables a secondary
match by id: when the resolved filename is unavailable — e.g. an
unauthenticated session that cannot read a Drive file's metadata — the id is
parsed from the Drive url and matched against this column. This lets a
download be redirected to the (public) mirror with no authentication at all.
An optional type column ("file"/"dir") enables directory remaps: a
"dir" row maps a Google Drive folder id (id column) to a bucket
prefix-listing URL (its url). When preProcess() downloads such a folder, it
enumerates the folder's files from that public listing instead of
googledrive::drive_ls(), so listing the folder needs no authentication. Rows
without a type column (or with type = "file") are ordinary file remaps,
unchanged. buckethost::makeMirrorManifest(directories = TRUE) emits such a
manifest.
The manifest itself — and the responsibility for keeping it current — lives
with the user (for example, a community-maintained mirror manifest);
reproducible hard-codes no mirror URLs.
Calling makeUrlRemap() yourself is optional: you can also assign the manifest
data.frame (or a CSV path/URL) directly to the option, e.g.
options(reproducible.urlRemap = read.csv("manifest.csv")), and reproducible
will build (and cache) the remap function internally. See the urlRemap entry
in reproducibleOptions().