Skip to content

Problem when using ASCII characters in R code #659

Answered by ColinFay
maxl-amberg asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

Yes, this is a known issue when it comes to publishing to the CRAN, which requires ASCII character only.
AFAIK, this is a legacy requirement, and almost every computer and server that would run this app will support non ASCII characters.

There are two solutions to this issue here:

  • The one you pointed out, i.e. turning all non ASCII char to their ASCII equivalent. That can be done manually with
> stringi::stri_escape_unicode("Lélàô ")
[1] "L\\u00e9l\\u00e0\\u00f4 "

Note that the {prefixer} package can do that for you too https://github.com/dreamRs/prefixer/#not-ascii

  • Ignore this warning ¯_(ツ)_/¯: if ever you only plan on releasing the app to a server and the server doesn't complain…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maxl-amberg
Comment options

Answer selected by maxl-amberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants