roper_download provides a programmatic and reproducible means to download
datasets from the Roper Center's data archive
roper_download( file_id, affiliation = getOption("roper_affiliation"), email = getOption("roper_email"), password = getOption("roper_password"), reset = FALSE, download_dir = "roper_data", msg = TRUE, convert = TRUE, delay = 2 )
The unique identifier (or optionally a vector of these identifiers) for the dataset(s) to be downloaded (see details). Both new Archive Numbers and old Historical Archive Numbers, if the latter are available, may be used.
|affiliation, email, password||
Your Roper Center affiliation, email, and password (see details)
If TRUE, you will be asked to re-enter your Roper Center affiliation, email, and password.
The directory (relative to your working directory) to which files from the Roper Center will be downloaded.
If TRUE, outputs a message showing which data set is being downloaded.
If TRUE, converts downloaded file(s) to .RData format.
If the speed of your connection to the Roper Center data archive is particularly slow,
The function returns nothing, but has the side effect of downloading all files of the datasets identified in the file_id argument.
To avoid requiring others to edit your scripts to insert their own affiliation,
email, and password or to force them to do so interactively, the default is set
to fetch this information from the user's .Rprofile. Before running
roper_download, then, you should be sure to add these options to your
usethis::edit_r_profile() is one particularly easy way),
substituting your own info for the example below: