check_scalar: Check Scalar

Description Usage Arguments Value

View source: R/check-scalar.R

Description

Checks the class and values of a scalar

Usage

1
check_scalar(scalar, value, scalar_name = substitute(scalar))

Arguments

scalar

The scalar to check.

value

A vector specifying the class and value.

scalar_name

A string of the name of vector.

Value

Throws an informative error or returns an invisible copy of the scalar.


poissonconsulting/deckr documentation built on March 18, 2021, 10:37 a.m.