REDCapCAST 24.6.1
Functions
-
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 theform_name
column. -
New:
doc2dd()
: function to convert document table to data dictionary. This allows to specify instrument or whole data dictionary in text document, which for most is easier to work with and easily modifiable. The generic case is a data frame with variable names as values in a column. This is a format like the REDCap data dictionary, but gives a few options for formatting. Has a few related functions for data handling and formatting. One interesting function iscase_match_regex_list()
, which allows for a dynamicdplyr::case_when()
-like approach for regex-matching. I think it is neat at least.
Documentation and more
- Dependencies: In order to deploy
shiny_cast()
withshinylive
, I need to removecurl
as a dependency. To accomplish this, theshiny_deploy()
helper functions has been moved to the packageproject.aid
. This was before realising thatREDCapR
hascurl
as dependency, which is the culprit.REDCapCAST
is not going to be ashinylive
web-app without removingREDCapR
dependency or any other REDCap database interaction, which would defy the purpose. I'll stick to hosted Shiny app instead.