Learn R Programming

ggcorrheatmap (version 0.1.2)

check_logical: Check (supposed) logical values.

Description

Check (supposed) logical values.

Usage

check_logical(..., list_allowed = FALSE, call = NULL)

Value

Error if not logical or longer than 1, otherwise nothing.

Arguments

...

Should be a single named argument, where the name is the variable name displayed in the error message. The value is the (supposed) logical.

call

Call to use for the call in the error message (used in rlang::abort). Default is rlang::caller_env() resulting in the function that called check_logical().