View source: R/download_generic.R
download_interview_report | R Documentation |
download_interview_report()
downloads a report from the Integrated Data
Tool project. You'll need API access to the project (and an API token for it)
to use this function.
download_interview_report( date = Sys.Date(), api_token, report_id, headers = c("raw", "label"), directory, new_file, force = 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. |
report_id |
The ID of the report to download |
headers |
Should column headers be raw variable names or labels? |
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.