assert_type: Assert an object is a scalar of a certain type

View source: R/assertions.R

assert_typeR Documentation

Assert an object is a scalar of a certain type

Description

Assert an object is a scalar of a certain type

Usage

assert_type(x, type)

Arguments

x

[any] Object to check

type

[chr] Type to check against

Value

[none] stop if assertion fails

See Also

Other assertions: assert_dir_exists(), assert_named_list(), assert_scalar(), assert_scalar_not_empty()


vmTools documentation built on Aug. 8, 2025, 7:28 p.m.