Check for potential outputs where metadata is present, but nrow
and
ncol
equal 0
. This causes multi_choice_to_labels
to fail, but
a helpful error message should be provided.
check_redcap_populated(db_data, call = caller_env())
A helpful error message alerting the user to check their API privileges.
The REDCap database output generated by
REDCapR::redcap_read_oneshot()$data
the calling environment to use in the error message