export_content {REDCapExporter} | R Documentation |
Export Content
Description
Export specific data elements from REDCap
Usage
export_content(content, uri = NULL, token = NULL, format = NULL, ...)
Arguments
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 |
Details
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.
Value
The raw return from the REDCap API with the class
rcer_raw_<content>
.
Examples
# 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)