Check if a file contains only ASCII characters
verify_ascii(input, quiet = FALSE)Logical. TRUE if the file only contains ASCII characters,
FALSE otherwise.
The contents of this section are shown in PDF user manual only.
pkg <- system.file("examples/pkg1", package = "pkglite")
txt <- tempfile(fileext = ".txt")
pkg %>%
collate(file_default()) %>%
pack(output = txt, quiet = TRUE) %>%
verify_ascii()
#> [1] TRUE