diff --git a/DESCRIPTION b/DESCRIPTION index 1c8fe1b..ee7e902 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -33,7 +33,8 @@ Suggests: styler, devtools, roxygen2, - spelling + spelling, + glue License: GPL (>= 3) Encoding: UTF-8 LazyData: true @@ -52,11 +53,13 @@ Imports: shiny, openxlsx2, haven, - readODS + readODS, + zip Collate: 'utils.r' 'process_user_input.r' 'REDCap_split.r' + 'create_instrument_meta.R' 'ds2dd.R' 'ds2dd_detailed.R' 'easy_redcap.R' diff --git a/NAMESPACE b/NAMESPACE index 072788d..a5597c6 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -2,6 +2,7 @@ export(REDCap_split) export(clean_redcap_name) +export(create_instrument_meta) export(d2w) export(ds2dd) export(ds2dd_detailed) diff --git a/NEWS.md b/NEWS.md index e03e4f1..2e2ebef 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,10 @@ * Fix: `read_redcap_tables()`: field names testing allows to include "[form_name]_complete" fields. +* Fix: `ds2dd_detailed()`: default record ID name is now "record_id", the REDCap default. Default is still to use the first column name. Support was added to interpret column name prefix or suffix as instrument names. See the examples. + +* New: `create_instrument_meta()`: creates zip with instrument files to allow adding new instruments to project in production. Takes data dictionary as input and creates a zip for each instrument specified by the `form_name` column. + ### Documentation and more * Dependencies: In order to deploy `shiny_cast()` with `shinylive`, I need to remove `curl` as a dependency. To accomplish this, the `shiny_deploy()` helper functions has been moved to the package [`pacakge.aid`](https://github.com/agdamsbo/package.aid). This is for a rainy day: https://r-wasm.github.io/rwasm/. The whole shiny part may be migrated to its own project to try to separate things and be easy on dependencies. Time will tell. diff --git a/inst/WORDLIST b/inst/WORDLIST index 1a2035b..a8fcd3b 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -16,7 +16,7 @@ REDCapR REDCapRITS THe UI -Whishes +WD al api attr @@ -25,6 +25,7 @@ da dafault datetime demonstrational +dir dmy doi dplyr @@ -50,10 +51,13 @@ param pegeler perl pos +pre readr -rsconnect sel +sep +seperator shinyapps +shinylive stRoke stata strsplit