Non-ASCII character in your package

Sometimes it is not possible to use only ASCII character and it prevents to pass the CRAN check.
For example, if you need to use "−"; clearly it will generate an error in the CRAN check.
The solution is to use the chr() and asc() functions of my HelpersMG package available in CRAN:

Do:
> asc("−")
[1] 195 162 203 134 226 128 153

And replace "−" in your code by:
> chr(c(195, 162, 203, 134, 226, 128, 153))
[1] "−"

You will have the magic message:
Status: OK
after your check for CRAN!

https://cran.r-project.org/web/packages/HelpersMG/index.html

Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04