Learn R Programming

vmTools (version 1.0.1)

assert_type: 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)

Value

[none] stop if assertion fails

Arguments

x

[any] Object to check

type

[chr] Type to check against

See Also

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