Learn R Programming

REDCapTidieR (version 1.2.3)

check_parsed_labels: Check that parsed labels are not duplicated

Description

Check that parsed labels are not duplicated

Usage

check_parsed_labels(
  parsed_labels_output,
  field_name,
  warn_stripped_text = FALSE,
  call = caller_env(n = 2)
)

Value

a warning message alerting specifying the duplicate labels and REDCap field affected

Arguments

parsed_labels_output

a vector of parsed labels produced by parse_labels()

field_name

the name of the field associated with the labels to use in the warning message

warn_stripped_text

logical for whether to include a note about HTML tag stripping in the message

call

the calling environment to use in the error message. The parent of calling environment by default because this check usually occurs 2 frames below the relevant context for the user