Show non-ASCII lines of file

non_ascii(path, highlight = FALSE)

Arguments

path

The path to a text file to check.

highlight

A function used to add ANSI escapes to highlight bytes.

Value

Tibble of line locations.

Examples

non_ascii(system.file("README.md", package = "campfin"))
#> Warning: file("") only supports open = "w+" and open = "w+b": using the former
#> [1] FALSE