check_is_param: Check whether a parameter value is from a valid set

View source: R/checks.R

check_is_paramR Documentation

Check whether a parameter value is from a valid set

Description

Check whether a parameter value is from a valid set

Usage

check_is_param(
  value,
  allowed,
  allownull = FALSE,
  allowmultiple = FALSE,
  stopit = TRUE,
  msg = NULL
)

Arguments

value

A character value.

allowed

Allowed values.

allownull

Whether to allow NULL values.

allowmultiple

Whether to allow multiple values.

stopit

Whether to stop execution if the value is invalid.

msg

A custom error message if the check fails.

Value

logical whether method is valid.


volker documentation built on April 12, 2025, 9:16 a.m.