rc_logic_check: Check branching logic for errors

View source: R/rc_logic_check.R

rc_logic_checkR Documentation

Check branching logic for errors

Description

Check branching logic for common errors

Usage

rc_logic_check(
  data_dict = getOption("redcap_bundle")$data_dict,
  events = getOption("redcap_bundle")$event_data$unique_event_name
)

Arguments

data_dict

REDCap project data data_dictionary. By default, $data_dict is expected in the REDCap bundle option, as created by rc_bundle. Otherwise, a data.frame containing the metadata must be supplied.

events

Character. Vector of redcap event names

Details

This function will verify that all event and variable names used in the branching logic exist in the project metadata.

Warnings will be shown for faulty event logic in the format [event-name] = 'event_name' AND [event-name] = 'event_name' (field always hidden) or [event-name] != 'event_name' OR [event-name] != 'event_name' (field never hidden).

Author(s)

Marcus Lehr


chillywings/rctools documentation built on Aug. 9, 2024, 11:52 p.m.