check_user_rights: Check for possible API user privilege issues

View source: R/checks.R

check_user_rightsR Documentation

Check for possible API user privilege issues

Description

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.

Usage

check_user_rights(db_data, db_metadata, call = caller_env())

Arguments

db_data

The REDCap database output generated by REDCapR::redcap_read_oneshot()$data

db_metadata

The REDCap metadata output generated by REDCapR::redcap_metadata_read()$data

call

the calling environment to use in the warning message

Value

A helpful error message alerting the user to check their API privileges.


REDCapTidieR documentation built on April 3, 2025, 10:50 p.m.