choice_check: choice_check

View source: R/choice_check.R

choice_checkR Documentation

choice_check

Description

A function for streamlining the argument-checking process when multiple strings are accepted.

Usage

choice_check(x, name, choices)

Arguments

x

an argument.

name

the name of the argument

choices

a vector of acceptable choices. The first string is used as the default.


camkay/panoply documentation built on Jan. 17, 2025, 6:31 a.m.