
Fetch a Dataverse file into a study-relative path (surgical pull)
Source:R/dataverse_manifest.R
fetch_dataverse_file.RdDownloads one file by Dataverse file id (or absolute URL) into the study
tree. Prefer this over full-dataset zip downloads and over study-local
download helpers. Typical Pattern B: write under outputs/.
Usage
fetch_dataverse_file(
file_id = NULL,
path,
url = NULL,
original = TRUE,
server = "dataverse.harvard.edu",
study_root = NULL,
force = TRUE
)Arguments
- file_id
Dataverse file id (ignored when
urlis set).- path
Study-relative destination (e.g.
"outputs/data.dta").- url
Optional direct URL (e.g. already including
?format=original).- original
When
TRUEand usingfile_id, request native upload.- server
Dataverse host.
- study_root
Local study root; defaults to
REPLICATE_STUDY_ROOTor".".- force
Re-download existing files.