[R-pkg-devel] Check Error Due to Unicode in Documentation

biii m@iii@g oii de@@ey@ws biii m@iii@g oii de@@ey@ws
Thu Jul 23 22:14:05 CEST 2020



I have a personal package that I�d eventually like to clean up and either
find other packages to be homes for the functions or perhaps eventually
release it on CRAN.  To that end, I try to keep package checks working.


One of the functions that I use is to try to simplify Unicode text to ASCII.
With that, I tend to receive data that is scientifically-focused to the mu
character should be converted to a �u� instead of the standard conversion to
�m�.  On top of that, there are at least two Unicode characters that are
visually the mu character, one is the micro character and the other is an
actual lowercase mu.  This function converts both of those to �u� as


I generate the documentation using roxygen2, but the text in the
documentation aligns with the expected Unicode character, so I think the
issue is not with roxygen.


The issue is that Codoc gives the following error:


* checking for code/documentation mismatches ... WARNING

Codoc mismatches from documentation object 'unicode_to_ascii':


  Code: function(x, verbose = FALSE, pattern = c("μ", "µ"), replacement

                 = c("u", "u"), general_


But, the code and documentation appear to be the same.  I think that the
issue relates to something with Unicode support in Codoc, but I�m not sure
how to test for that.  The code is here:




And the documentation is here:




Do you have any suggestions on how to make this code/documentation work with





	[[alternative HTML version deleted]]

More information about the R-package-devel mailing list