Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_character() always permits NA values #1724

Open
JosiahParry opened this issue Jul 1, 2024 · 1 comment · May be fixed by #1745
Open

check_character() always permits NA values #1724

JosiahParry opened this issue Jul 1, 2024 · 1 comment · May be fixed by #1745
Labels
tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day

Comments

@JosiahParry
Copy link

i would like to ensure that check_character() does not permit NA values. However, it always allows them.

source("https://raw.githubusercontent.com/r-lib/rlang/main/R/standalone-obj-type.R")
source("https://raw.githubusercontent.com/r-lib/rlang/main/R/standalone-types-check.R")

# confirm that i have greater than 1.1
packageVersion("rlang")
#> [1] '1.1.3'
# import rlang
library(rlang)

check_character(c("a", NA, "c"), allow_na = FALSE)
@lionel- lionel- added the tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day label Jul 2, 2024
@teunbrand
Copy link
Contributor

I'd like to flag that the same problem exists for check_logical().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants