meta_events | R Documentation |
Execute an "Export Events" API request to fetch a
tibble
-style data frame containing event names and
labels. Note that this request type is not available for 'classic projects',
from which event details cannot be exported.
meta_events(conn, on_error = "fail")
conn |
A REDCap API connection object (created with |
on_error |
How to handle errors returned by the API (e.g. events cannot
be exported for classic projects). Set to "fail" to halt execution and
return the API error message, or "null" to ignore the error and return
|
A tibble
-style data frame with 7 columns:
event_name
arm_num
day_offset
offset_min
offset_max
unique_event_name
custom_event_label
## Not run:
conn <- rconn(
url = "https://redcap.msf.fr/api/",
token = Sys.getenv("MY_REDCAP_TOKEN")
)
meta_events(conn)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.