Skip to content
Prev 6390 / 12125 Next

[R-pkg-devel] FW: [CRAN-pretest-archived] CRAN submission valmetrics 1.0.0

In the check log, I see
I can reproduce this warning with a minimal test package with an Rd file
containing the Unicode hyphen "?" (U+2010), which is different from
ASCII-compatible hyphen-minus "-" (U+002D), though not visibly ...
The problematic hyphen probably arose from copy-pasting text from the
browser (which I just did for testing) or an office application into the
package documentation.

You can find non-ASCII characters in your Rd files using, e.g.,
tools::showNonASCIIfile("file.Rd"). For my test file, this gives:
7: \description{test <e2><80><90> test}

In many text editors, the character between "test" and "test" is
displayed just like a standard ASCII hyphen-minus. In my Emacs it is
shown in red, though, and in RStudio it looks slightly different than
the ASCII minus (but hard to recognize if you don't know).

You could apply the above function to all of "man" using, e.g.,

lapply(list.files("man", full.names=TRUE), tools::showNonASCIIfile)

at the root of your package and look for "<e2><80><90>" in the result.

Hope this helps.
Best regards,

	Sebastian Meyer


Am 16.12.20 um 08:12 schrieb Kristin Piikki: