Open
Description
See the following reprex:
library(cli)
pluralize('{c(NA_character_)} file{?s}')
#> NA file
pluralize('{c("file1", NA_character_)} file{?s}')
#> NA files
pluralize('{c(NA_character_, "file1")} file{?s}')
#> NA files
pluralize('{c("file1", "file2", NA_character_)} file{?s}')
#> NA files
Created on 2024-08-15 with reprex v2.1.1
I believe the expected behavior should be to have the vector displayed as is with the included NA
s.