Check for potential user access privilege issues and provide an appropriate warning message. This can occur when metadata forms/field names do not appear in a database export.
check_user_rights(db_data, db_metadata, 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 REDCap metadata output generated by REDCapR::redcap_metadata_read()$data
the calling environment to use in the warning message