View source: R/download_generic.R
| check_date_updated | R Documentation |
check_date_updated() checks whether the supplied date
(today, by default) matches the date_updated record for the specified
region in the Data for Regions REDcap project.
check_date_updated(
date = Sys.Date(),
api_token = Sys.getenv("redcap_DFR_token"),
region = "MSR",
date_updated = "date_updated",
quiet = FALSE,
vac = FALSE
)
date |
The date to check against; defaults to |
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. |
region |
The region to check for; exists to aid internal implementation and should probably not be changed from default |
date_updated |
The name of the record containing the date updated in REDcap; this exists to aid internal implementation and should probably not be changed from default |
quiet |
By default, warnings are issued if date does not match, and a message is issued if it does; should these be silenced? |
vac |
Should vaccination data be checked ( |
TRUE if dates match, FALSE otherwise
data-for-regions-snapshots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.