
Generate a REDCap Instrument ZIP File for the HiTOP-BR
Source:R/generate_redcap.R
generate_redcap_hitopbr.RdGenerates a REDCap-compatible data dictionary for the Hierarchical Taxonomy of Psychopathology - Brief Report (HiTOP-BR) and packages it into an Instrument ZIP file for easy uploading.
Usage
generate_redcap_hitopbr(
file = "hitopbr_redcap.zip",
form_name = "hitopbr_questionnaire",
required = TRUE,
breaks = 15
)Arguments
- file
Character string. The destination path for the output ZIP file. Defaults to
"hitopbr_redcap.zip".- form_name
Character string. The internal name of the form in REDCap. Defaults to
"hitopbr_questionnaire".- required
Logical. Whether the items should be marked as required. Defaults to
TRUE.- breaks
Integer or
NULL. The number of items to display before inserting a page break. Set to0orNULLto disable pagination entirely. Defaults to15.
See also
Step-by-step import instructions for Qualtrics and REDCap: https://jmgirard.github.io/hitop/articles/import-instructions.html
Examples
# Write a HiTOP-BR REDCap instrument ZIP to a temporary location
generate_redcap_hitopbr(file = tempfile(fileext = ".zip"))
#> ✔ Instrument successfully zipped to /tmp/RtmpuFQlRn/file1b415ff383ef.zip