err_message: Creation of Error Message

View source: R/check_helpers.R

err_messageR Documentation

Creation of Error Message

Description

This function creates an error message for missing arguments or columns in the function call. It is used internally in the package to provide informative error messages when required arguments or columns are not provided.

Usage

err_message(miss, error, arg_or_col = c("argument", "column"))

Arguments

miss

a character vector of missing arguments or columns.

error

a character string describing the error.

arg_or_col

a character string indicating whether the missing items are arguments or columns. It can be either "argument" or "column". The default is "argument"

Value

a character string containing the formatted error message.


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