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

[BUG] suppress_redcapr_messages Is Not Working #104

Closed rsh52 closed 1 year ago

rsh52 commented 1 year ago

Expected Behavior

Supplying suppress_redcapr_messages = FALSE should allow for REDCapR messages to come through (instead of the default of TRUE).

Current Behavior

Messages are always suppressed regardless of argument spec.

Proposed Solution

In the REDCapR::redcap_read_oneshot call, we currently have verbose = FALSE where instead it should be verbose = supress_redcapr_messages.

Checklist

Before submitting this issue, please check and verify below that the submission meets the below criteria:

rsh52 commented 1 year ago

@skadauke @ezraporter In addition to the oneshot call, there are 4 other REDCapR API calls involving the verbose argument (metadata, arm, and instrument reads). Should suppress_redcapr_messages extend to all API calls, or just oneshot (keeping in mind how oneshot may eventually be amended with #103/large databases). Is it more helpful to give users the option to see all results, or is this more confusing information than informative?