OuhscBbmc / REDCapR

R utilities for interacting with REDCap
https://ouhscbbmc.github.io/REDCapR
Other
112 stars 45 forks source link

Unexpected Behavior: `redcap_event_instruments` does not return all arms by default #482

Closed januz closed 1 year ago

januz commented 1 year ago

Describe the behavior:

I feel like a better default behavior for REDCapR::redcap_event_instruments() would be to return event-form mappings for all arms instead of for arm 1. Additionally, I was expecting that I could specify all arms as a character, e.g., arms = c("1", "2", "3") but this also only returns mappings for arm 1, i.e., one seems to only be able to export mappings for one arm at a time.

Expected behavior:

Default behavior should be like redcapAPI::exportMappings(), i.e., return mappings for all arms. If a user specifies a specific arm or a vector of selected arms, mapping for this / those arm(s) should be returned.

Desktop (please complete the following information):

wibeasley commented 1 year ago

@januz, does this work like you want now?

januz commented 11 months ago

@wibeasley Sorry for the late reply and generally not having been in contact about the other issue we were talking about (unfortunately, work has been and continues to be crazy...). I just tested the new version and it works as expected. Thanks so much for implementing this!