View source: R/export_redcap_project.R
| export_content | R Documentation |
Export specific data elements from REDCap
export_content(content, uri = NULL, token = NULL, format = NULL, ...)
content |
The element to export, see Details. |
uri |
The URI for the REDCap API. If |
token |
The API token for the project you want to export from. If
|
format |
The format to return. If |
... |
additional arguments passed to |
The content and format arguments are used to control the
specific items to be exported, and in what format. **Review the API
documentation**
The uri, token, and format arguments are set to
NULL by default and will look to the
Sys.getenv("REDCap_API_URI"),
Sys.getenv("REDCap_API_TOKEN"), and
Sys.getenv("REDCap_API_format"), respectively, to define the values if
not explicitly done so by the end user.
The raw return from the REDCap API with the class
rcer_raw_<content>.
# A reproducible example would require a REDCap project, accessable via an
# API token. An example of the return from these calls are provided as data
# with this package.
# avs_raw_metadata <- export_content(content = "metadata")
data(avs_raw_metadata)
str(avs_raw_metadata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.