accessREDCap: Access REDCap data for country

View source: R/accessREDCap.R

accessREDCapR Documentation

Access REDCap data for country

Description

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.

Usage

accessREDCap(country, filepath = NULL)

Arguments

country

A character string representing the country for which REDCap data will be accessed.

filepath

Directory where extracted file should be saved

Value

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.

See Also

downloadREDCap for downloading REDCap data.

grabKeyring for creating or getting a keyring.

setOrGetFilePath for setting or getting a file path.

Examples

## Not run: 
# Request data for a fictional country 'DB'
accessREDCap("DB")

## End(Not run)

Epiconcept-Paris/STRAP-epiuf documentation built on Aug. 5, 2024, 3:41 a.m.