2023-04-13 12:15:34 +02:00
|
|
|
## code to prepare `redcapcast_data` dataset goes here
|
|
|
|
|
2024-02-27 13:20:21 +01:00
|
|
|
redcapcast_data <- REDCapR::redcap_read(
|
|
|
|
redcap_uri = keyring::key_get("DB_URI"),
|
|
|
|
token = keyring::key_get("cast_api"),
|
|
|
|
raw_or_label = "label"
|
|
|
|
)$data |> dplyr::tibble()
|
2024-02-06 14:15:36 +01:00
|
|
|
|
|
|
|
# redcapcast_data <- easy_redcap(project.name = "redcapcast_pacakge",
|
|
|
|
# uri = keyring::key_get("DB_URI"),
|
|
|
|
# widen.data = FALSE)
|
2023-04-13 12:15:34 +02:00
|
|
|
|
|
|
|
usethis::use_data(redcapcast_data, overwrite = TRUE)
|
2024-11-15 20:42:25 +01:00
|
|
|
|
|
|
|
write.csv(redcapcast_data,here::here("data/redcapcast_data.csv"),row.names = FALSE)
|