if (FALSE) {
unlockREDCap(connections = c(rcon = "project_alias"),
url = "your_redcap_url",
keyring = "API_KEYs",
envir = globalenv())
# Export repeating instruments and events
exportRepeatingInstrumentsEvents(rcon)
# Import repeating instruments and events
NewData <- data.frame(event_name = c("event_1_arm_1",
"event_2_arm_1"),
form_name = c("field_observation",
"self_assessment"),
custom_form_label = c("Instructor led field observation",
"Trainee self assessment"))
importRepeatingInstrumentsEvents(rcon,
data = NewData)
}
Run the code above in your browser using DataLab