error_if_items: error if items

View source: R/utils.R

error_if_itemsR Documentation

error if items

Description

A function assertion used to create an error condition on the existence of some items

Usage

error_if_items(
  items,
  text,
  error = TRUE,
  and = FALSE,
  or = FALSE,
  quotes = FALSE
)

Arguments

items

A character vector of items

text

A character vector that items may be within

error

Logical, should a stop be called?

and

Logical, passed to collapse_items

or

Logical, passed to collapse_items

quotes

Logical, passed to collapse_items


Crunch-io/crunchtabs documentation built on Jan. 31, 2023, 12:14 p.m.