show_nonascii_file: Search for non-ASCII characters in files

Description Usage Arguments Value Examples

View source: R/show_nonascii_file.R

Description

Search for non-ASCII characters in files

Usage

1
2
3
4
5
6
show_nonascii_file(
  path = ".",
  size_limit = 5e+05,
  ignore_dir = c("docs"),
  ignore_ext = c("png", "jpg", "rds", "rda")
)

Arguments

path

Path where to start searching. If a directory, search in all files recursively.

size_limit

Limit size of files scanned (in bytes).

ignore_dir

Ignore some directories (relative to path).

ignore_ext

Ignore with those extensions.

Value

a data.frame with files and lines where non-ascii have been detected, if none return NULL.

Examples

1
2
3
4
5
6
## Not run: 

show_nonascii_file(system.file(package = "prefixer"))


## End(Not run)

dreamRs/prefixer documentation built on Sept. 14, 2021, 10:50 p.m.