accessREDCap | R Documentation |
This function checks for an existing secret key and file path for the specified country. If these exist, the function will proceed to download REDCap data. If not, the user will be prompted to create the necessary credentials.
accessREDCap(country, filepath = NULL)
country |
A character string representing the country for which REDCap data will be accessed. |
filepath |
Directory where extracted file should be saved |
If a secret key and file path exist, this function will proceed to call downloadREDCap()
with the appropriate arguments.
Otherwise, it will prompt the user to create a secret key or file path, or to continue with the download without them.
downloadREDCap
for downloading REDCap data.
grabKeyring
for creating or getting a keyring.
setOrGetFilePath
for setting or getting a file path.
## Not run:
# Request data for a fictional country 'DB'
accessREDCap("DB")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.