I have created simple packageStartupMessage() messages with characters such as ç, ã, õ and ú inside a .onAttach function. Should the devtools::check() function really display the "Portable packages must use only ASCII characters in their R code" warning?
As mentioned in Chapter 7 R code | R Packages you should only place ASCII characters in code.
Fixed code placing problematic text within cat(stringi::stri_escape_unicode()) to generate ASCII accepted text and later placed output inside packageStartupMessage(stringi::stri_conv())
within code. Notice the new stringi::stri_conv() function being used.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.