Identifies source files flagged by R CMD check as containing
non-ASCII characters, then replaces them with escaped \uXXXX sequences.
All changes are committed before making modifications, so they can be
reverted with undo().
Arguments
- pkg
the package to scan
- check
output of a
devtools::check()command (will check automatically if not provided)