Learn R Programming

dang (version 0.0.16)

checkPackageAsciiCode: checkPackageAsciiCode

Description

Check a package directory for non-ASCII characters in source files.

Usage

checkPackageAsciiCode(dir, respect_quotes = FALSE)

Value

A vector of things that are wrong per this function, also displayed on standard output

Arguments

dir

Character variable with path to directory to be checked

respect_quotes

Logical variable whether quotes need to be checked

Author

Dirk Eddelbuettel for this version, R Core for the underlying code

Details

The function is a renamed and slightly edited copy of the base R function .check_package_ASCII_code. It uses an unexported C function, also included, from base R, called as _check_nonASCII.

Examples

Run this code
if (FALSE) {
checkPackageAsciiCode(".", FALSE)
}

Run the code above in your browser using DataLab