Skip to content
Prev 8474 / 12125 Next

[R-pkg-devel] Non-ASCII and CRAN Checks

This happened to me this summer when working on the recent US census; came
up with two possible solutions:

1. Re-encode the column to UTF-8. Example:

Encoding(puertoricocounty20$NAME) <- "latin1"
puertoricocounty20$NAME <- iconv(puertoricocounty20$NAME, "latin1", "UTF-8")

2. Use gsub to replace all n-tilde's with regular n's.

- Neal
On Mon, Sep 19, 2022 at 12:53 PM Igor L <igorlaltuf at gmail.com> wrote: