mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-11-23 13:50:21 +01:00
16 lines
633 B
R
16 lines
633 B
R
# metadata_names <- c(
|
|
# "field_name", "form_name", "section_header", "field_type",
|
|
# "field_label", "select_choices_or_calculations", "field_note",
|
|
# "text_validation_type_or_show_slider_number", "text_validation_min",
|
|
# "text_validation_max", "identifier", "branching_logic", "required_field",
|
|
# "custom_alignment", "question_number", "matrix_group_name",
|
|
# "matrix_ranking", "field_annotation"
|
|
# )
|
|
|
|
metadata_names <- REDCapR::redcap_metadata_read(
|
|
redcap_uri = keyring::key_get("DB_URI"),
|
|
token = keyring::key_get("cast_api")
|
|
)$data |> names()
|
|
|
|
usethis::use_data(metadata_names, overwrite = TRUE, internal = TRUE)
|