Skip to content

check_character() always permits NA values  #1724

@JosiahParry

Description

@JosiahParry

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    tidy-dev-day 🤓Tidyverse Developer Day rstd.io/tidy-dev-day

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions