View source: R/download_data_for_regions.R
download_data_for_regions | R Documentation |
download_data_for_regions()
is the workhorse behind the
download_*_snapshot()
functions.
download_data_for_regions( date = Sys.Date(), api_token, redcap_file, directory, new_file, force = FALSE, vac = FALSE )
date |
A |
api_token |
The API token for accessing the Data for Regions REDcap project. This should be stored in an .Renviron file; see env_vars for details. |
redcap_file |
A string indicating the name of the file to download from REDcap |
directory |
A string specifying the save directory; this should usually be left alone |
new_file |
A string specifying the save file name; this should always end in .csv and should usually be left alone |
force |
A logical indicating whether to ignore any existing files
matching |
Invisibly returns the path to the new data file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.