Closed rsh52 closed 1 year ago
REDCapTidieR runs slower than we'd like for larger databases where load times are more noticable.
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:
mutate
case_when
create_repeat_vars
add_partial_keys
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:
multi_choice_to_labels
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 increate_repeat_vars
which is a component of theadd_partial_keys
utility function: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:Checklist