Learn R Programming

pkglite (version 0.1.1)

verify_ascii: Check if a file contains only ASCII characters

Description

Check if a file contains only ASCII characters

Usage

verify_ascii(input, quiet = FALSE)

Arguments

input

Path to the text file.

quiet

Print the elements containing non-ASCII characters?

Value

Logical. TRUE if the file only contains ASCII characters, FALSE otherwise.

Specification

The contents of this section are shown in PDF user manual only.

Examples

Run this code
# NOT RUN {
pkg <- system.file("examples/pkg1", package = "pkglite")
txt <- tempfile(fileext = ".txt")

pkg %>%
  collate(file_default()) %>%
  pack(output = txt, quiet = TRUE) %>%
  verify_ascii()
# }

Run the code above in your browser using DataLab