make_warning: Make Warning Message

View source: R/check_helpers.R

make_warningR Documentation

Make Warning Message

Description

This function creates a warning message for a specific condition in the data. It formats the message to include the column names involved, the number of rows affected, and the specific row numbers where the warning applies. It is used internally in the package to provide informative warnings when certain conditions are met.

Usage

make_warning(errorws, colvars, warning_message, print_all = TRUE)

Arguments

errorws

a vector of row numbers where the warning applies.

colvars

a character vector of column names that are involved in the warning.

warning_message

a character string containing the warning message to be included in the output.

print_all

a logical value indicating whether to print all rows with warnings or truncate the output to the first 5 rows. Default is TRUE.


piavat/PRE2DUP-R documentation built on June 11, 2025, 11:42 a.m.