dot-validate_scalar: Ensure the argument is a single logical value

.validate_scalarR Documentation

Ensure the argument is a single logical value

Description

Ensure the argument is a single logical value

Usage

.validate_scalar(arg_value, arg_name, arg_type = "logical")

Arguments

arg_value

The value of the argument.

arg_name

The name of the argument for error messages.

arg_type

The expected class for error messages.

Value

The value (if it is length-1).


cookies documentation built on Oct. 3, 2023, 1:07 a.m.