Checks if x is a logical vector with no attributes including names.
Usage
check_logical(x, coerce = FALSE, x_name = substitute(x), error = TRUE)
Examples
check_logical(1, error = FALSE)
#> Warning: `check_logical()` was deprecated in checkr 0.5.1.
#> ℹ Please use `chk::chk_logical()` instead.
#> Warning: 1 must be class logical
#> Warning: 1 must inherit from classes 'logical' in that order
check_logical(FALSE, error = FALSE)
check_logical(c(FALSE, TRUE), error = FALSE)