.error_message {scenes}R Documentation

Generate an Error Message

Description

Generate an Error Message

Usage

.error_message(
  parameter,
  parameter_name,
  valid_values,
  special_message,
  level = 2
)

Arguments

parameter

The argument to test.

parameter_name

The argument's name. Eventually this should be automatically handled through rlang or something, in theory.

valid_values

(optional) Expected values of the parameter.

special_message

A message tailored to the type of error.

level

How deep the check is relative to the original function. Default = 2.


[Package scenes version 0.1.0 Index]