The API token should be stored in the user's .Renviron file.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ReadRedcapReport(
token,
token_name = "redcap_token",
url = "https://redcap.emory.edu/api/",
report_id = "29228",
format = "csv",
csvDelimiter = "",
rawOrLabel = "raw",
rawOrLabelHeaders = "raw",
exportCheckboxLabel = "false",
returnFormat = "json",
...
)
|
Additional arguments to read_csv() (e.g., guess_max = 2000) can be passed as inputs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.