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

[FEATURE] Improve REDCapTidieR Execution Times #132

Closed rsh52 closed 1 year ago

rsh52 commented 1 year ago

Feature Request Description

REDCapTidieR runs slower than we'd like for larger databases where load times are more noticable.

Proposed Solution

It looks like one of the main culprits is a mutate/case_when used in create_repeat_vars which is a component of the add_partial_keys utility function:

image

We may want to lean on base R for this instead.

Another place of slow times is the multi_choice_to_labels function, though this may be more difficult to improve:

image

Checklist