switchDag | R Documentation |
This method enables the current API user to switch (assign/reassign/unassign) their current Data Access Group assignment if they have been assigned to multiple DAGs via the DAG Switcher page in the project.
switchDag(rcon, dag, ...)
## S3 method for class 'redcapApiConnection'
switchDag(
rcon,
dag,
refresh = TRUE,
...,
error_handling = getOption("redcap_error_handling"),
config = list(),
api_param = list()
)
rcon |
A |
dag |
|
refresh |
|
... |
Arguments to pass to other methods |
error_handling |
|
config |
A named |
api_param |
A named |
Returns TRUE
when the call is completed successfully.
exportDags()
,
importDags()
,
deleteDags()
,
exportUserDagAssignments()
,
importUserDagAssignments()
## Not run:
unlockREDCap(connections = c(rcon = "project_alias"),
url = "your_redcap_url",
keyring = "API_KEYs",
envir = globalenv())
# Switch the current user to the DAG "Facility Two"
switchDag(rcon,
dag = "facility_two")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.