try_redcapr: Make a REDCapR
API call with custom error handling
Description
Make a REDCapR
API call with custom error handling
Usage
try_redcapr(expr, call = caller_env())
Value
If successful, the data
element of the REDCapR
result. Otherwise an error
Arguments
- expr
an expression making a REDCapR
API call
- call
the calling environment to use in the warning message