Checks whether an objects is unnamed.
Usage
check_unnamed(x, x_name = substitute(x), error = TRUE)
Examples
check_unnamed(2, error = FALSE)
#> Warning: `check_unnamed()` was deprecated in checkr 0.5.1.
#> ℹ Please use `chk::chk_null_or()` instead.
x <- 1
names(x) <- "y"
check_unnamed(x, error = FALSE)
#> Warning: x must be unnamed