Brodie Gaslam pointed out that tools::showNonASCIIfile() does the job very nicely.
On Mar 6, 2019, at 11:14 AM, John Mount <jmount at win-vector.com> wrote: I am getting this warning on the `rquery` package: https://cran.r-project.org/web/checks/check_results_rquery.html <https://cran.r-project.org/web/checks/check_results_rquery.html>
Found the following significant warnings:
Warning: unable to re-encode 'db_info.R' lines 93, 217
Looking into the code I see it is because I had weird formatted quote characters in a comment ( https://github.com/WinVector/rquery/blob/ce6ad3733876d9d731933b8d85850adc10304564/R/db_info.R#L93 <https://github.com/WinVector/rquery/blob/ce6ad3733876d9d731933b8d85850adc10304564/R/db_info.R#L93> ). So I went and excised them. Is there any Unix tool (or even R tool) that will tell me which other source files have this kind of problem? Some sort of "isascii" function? I'd like to fix any others while I am at it. --------------- John Mount http://www.win-vector.com/ <http://www.win-vector.com/> Our book: Practical Data Science with R http://www.manning.com/zumel/ <http://www.manning.com/zumel/>
--------------- John Mount http://www.win-vector.com/ <http://www.win-vector.com/> Our book: Practical Data Science with R http://www.manning.com/zumel/ <http://www.manning.com/zumel/>