Description Usage Arguments Value Examples
View source: R/read_redcap_metadata.R
Read in metadata from Redcap project via Redcap API
1 | read_redcap_metadata(uri, token_name, fields = NULL, forms = NULL)
|
uri |
A link to a Redcap server. |
fields |
A string or a vector of strings. Indicates desired fields to query from REDCAP project. |
forms |
A string or a vector of strings. Indicates desired forms to query from REDCAP project. |
token |
A string that stores the API key which grants access to a REDCAP project. |
A data frame containing metadata for a Redcap project. Four columns are returned: field_name, form_name, field_label, and select_choices_or_calculations.
1 2 | read_redcap_metadata(uri = "path/to/Redcap/API/Server", token = "NAME_OF_TOKEN_IN_RENVIRON")
mapply(read_redcap_metadata, token = get_environment_vars("^REDCAP"), uri = "path/to/Redcap/API/Server")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.