if (FALSE) {
# Please don't run this example without changing the token to
# point to your server. It could interfere with our testing suite.
uri <- "https://bbmc.ouhsc.edu/redcap/api/"
token <- "457C24AB91B7FCF5B1A7DA67E70E24C7"
# Read in the dictionary in R's memory from a csv file.
ds_to_write <-
readr::read_csv(
file = system.file(
"test-data/project-simple/metadata.csv",
package = "REDCapR"
),
col_types = readr::cols(.default = readr::col_character())
)
ds_to_write
# Import the dictionary into the REDCap project
REDCapR::redcap_metadata_write(
ds = ds_to_write,
redcap_uri = uri,
token = token
)
}
Run the code above in your browser using DataLab