CHOP-CGTInformatics / REDCapTidieR

Makes it easy to read REDCap Projects into R
https://chop-cgtinformatics.github.io/REDCapTidieR/
Other
33 stars 8 forks source link

Refactor `parse_labels()` to remove `return_stripped_text_flag` parameter #124

Open ezraporter opened 1 year ago

ezraporter commented 1 year ago

Currently parse_labels() takes a return_stripped_text_flag argument that, if TRUE, returns a flag indicating whether or not parse_labels() altered label text during parsing by stripping HTML/field embedding logic.

This complexity was introduced in #118 to allow check_parsed_labels() to add a message indicating that the labels were altered. Ideally check_parsed_labels() could produce the correct message without parse_labels() needing to pass a flag around but this would take additional refactoring of how we handle applying labels.

Checklist