check_arguments: Checks Missing or Unvalid Arguments in Function Calls

View source: R/check_helpers.R

check_argumentsR Documentation

Checks Missing or Unvalid Arguments in Function Calls

Description

This function checks if the required arguments are present in the function call. It compares the given arguments to main function argument list. It raises an error if any required arguments are missing, NULL, or empty strings and stops execution of check function. It is used used internally in the package to ensure that the necessary arguments are provided when calling the check functions.

Usage

check_arguments(dt, required_columns, data_name = NULL, ...)

Arguments

dt

required argument in the function call of any the datasets.

required_columns

a character vector of required column names that must be present in the function call.

data_name

required argument in the function call of any the datasets.

...

other arguments passed to the function call.


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