Skip to contents

Database issues should be traced in a separate table file, with an identifying row number

Usage

edc_data_warn(df, message, issue_n = NULL)

Arguments

df

the filtered dataframe

message

the message. Can use cli formats.

issue_n

(optional) identifying row number

Value

nothing

Examples

tm = edc_example_mixed()
#> Warning: Option "edc_lookup" has been overwritten.
a = tm$long_pure %>% dplyr::filter(val1a>2)
edc_data_warn(a, "{.val val1} should be lesser than 2", issue_n=1)
#> Warning: Issue #01: "val1" should be lesser than 2 (Patient 2, 4, 16, 29, 32, 61, 77,
#> 87, and 88)