assert_one_of: Check if argument is one of the allowed options

Description Usage Arguments Value

View source: R/misc.R

Description

Check if argument is one of the allowed options

Usage

1
assert_one_of(arg, allowed)

Arguments

arg

the argument to check

allowed

allowed options

Value

TRUE if check succeeds, throw error otherwise


jtimonen/stanbreaker documentation built on Jan. 20, 2021, 12:34 a.m.