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://redcap-dev-2.ouhsc.edu/redcap/api/"
token <- "06C38F6D76B3863DFAE84069D8DBCFFC" # metadata-write
# Read in the dictionary in R's memory from a csv file.
ds_to_write <-
readr::read_csv(
file = system.file(
"test-data/projects/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