6.22 CRAN notes

If you are submitting to CRAN, you must use only ASCII characters in your .R files:

  • 0-9
  • a-z
  • A-Z
  • Common punctuation
  • Unicode escape like "\u1234". The function stringi::stri_escape_unicode() can be useful.

The functions tools::showNonASCII() and tools::showNonASCIIfile(file) help you find the offending file(s) and line(s).

tools::showNonASCIIfile("R/foo.R")
#> 666: #' If you<e2><80><99>ve copy/pasted quotes, watch out!