diff --git a/.Rbuildignore b/.Rbuildignore index 4c09a35..a4dc57c 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -15,3 +15,4 @@ ^logo\.R$ ^cran-comments\.md$ ^CRAN-SUBMISSION$ +drafting diff --git a/.gitignore b/.gitignore index 94a5de7..4695a9c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ inst/doc logo.R *.DS_Store docs +drafting diff --git a/R/sysdata.rda b/R/sysdata.rda index cb869c8..c36713f 100644 Binary files a/R/sysdata.rda and b/R/sysdata.rda differ diff --git a/data-raw/metadata_names.R b/data-raw/metadata_names.R index 30d8c8c..b00ac13 100644 --- a/data-raw/metadata_names.R +++ b/data-raw/metadata_names.R @@ -1,10 +1,14 @@ -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 <- 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) diff --git a/renv.lock b/renv.lock index 7fc932e..96748f7 100644 --- a/renv.lock +++ b/renv.lock @@ -93,19 +93,6 @@ ], "Hash": "9fe98599ca456d6552421db0d6772d8f" }, - "calendar": { - "Package": "calendar", - "Version": "0.0.1", - "Source": "Repository", - "Repository": "CRAN", - "Requirements": [ - "R", - "lubridate", - "methods", - "tibble" - ], - "Hash": "ab478f470a5203ff9990e42d916005b0" - }, "checkmate": { "Package": "checkmate", "Version": "2.3.1", @@ -310,19 +297,6 @@ ], "Hash": "b8552d117e1b808b09a832f589b79035" }, - "lubridate": { - "Package": "lubridate", - "Version": "1.9.3", - "Source": "Repository", - "Repository": "CRAN", - "Requirements": [ - "R", - "generics", - "methods", - "timechange" - ], - "Hash": "680ad542fbcf801442c83a6ac5a2126c" - }, "magrittr": { "Package": "magrittr", "Version": "2.0.3", @@ -575,17 +549,6 @@ ], "Hash": "79540e5fcd9e0435af547d885f184fd5" }, - "timechange": { - "Package": "timechange", - "Version": "0.3.0", - "Source": "Repository", - "Repository": "CRAN", - "Requirements": [ - "R", - "cpp11" - ], - "Hash": "c5f3c201b931cd6474d17d8700ccb1c8" - }, "tzdb": { "Package": "tzdb", "Version": "0.4.0",