check_redcap_populated: Check that a supplied REDCap database is populated

View source: R/checks.R

check_redcap_populatedR Documentation

Check that a supplied REDCap database is populated

Description

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.

Usage

check_redcap_populated(db_data, call = caller_env())

Arguments

db_data

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

call

the calling environment to use in the error 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.