.validate_scalar {cookies}R 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).


[Package cookies version 0.2.3 Index]