From 796826d7d9791734eb8e1e1cfc60641d7a9ffd4a Mon Sep 17 00:00:00 2001 From: Andreas Gammelgaard Damsbo Date: Fri, 9 Feb 2024 09:29:34 +0100 Subject: [PATCH] minor revs --- .Rbuildignore | 1 + .gitignore | 1 + R/sysdata.rda | Bin 291 -> 293 bytes data-raw/metadata_names.R | 20 ++++++++++++-------- renv.lock | 37 ------------------------------------- 5 files changed, 14 insertions(+), 45 deletions(-) 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 cb869c807e17f73f29c1727e2ea7084776bdf301..c36713fd4db3438741709c8a9aaab281972acbab 100644 GIT binary patch delta 272 zcmV+r0q_2!0;K{DLRx4!F+o`-Q(4%&jR%nqAAhFCq|h2@8Vwl+G|*@PlR#u?p^2jg zB|REIngV{Qk)}gUJx8Q8-e4Z+-hlXmL8qos-$xSlXV2TMm#)*pX3{`lNGYL)A`k>H zy#OGXe%sH~;;C|_s1quCv9H~AOwx0_4VJCCBe#7FVb;sT5oc8Zy8r7t%ReJeNmooK{IN1 zjmU-p*bdX7u7E)}#-b*Lc#Rf*7r=(2J~hI22Tq#}*}PeVtI+P1!$IOD2vr1y!}vUf W8Ouvpxa%K(;_gVN3KAO^k)Yr((s-c& delta 270 zcmV+p0rCE&0;2*BLRx4!F+o`-Q(28f%4(4gAAhHUBSEHvK+%X}O$LA&GzLbR7@9C* zQ_-XeqGWnT6HE<9q|G;&2f8+(Il&;)b`jq<65h|39#vYp&h1{rfWVMLLo-7l2w{2v zK`_?tp5pl>vPqy!sl`ie*3_*hJ3#kQ@#OWG6^5iEOU>wV$`x&Jjwmt$lL02o!;>m3 zhj+$;Q)0tg0xo(ZiZSuPtH#lqsSXk1$(2j^o7+Zv9GzPR7~uHSN;oIc8D#VmHK%yi zh+rK+>^c_51QLWQB3PS5D1M^%5ZGtRw@KlWrRL1qD!N$xopP{dJj9_4P)Jxm!^lyb Uw6u#3k>k+2k}1N3glZ;JP^Le7R{#J2 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",