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 <igorlal...@gmail.com> wrote:

> Hello everybody,
>
> I'm testing my package with the devtools::check() function and I got a
> warning about found non-ASCII strings.
>
> These characters are in a dataframe and, as they are names of institutions
> used to filter databases, it makes no sense to translate them.
>
> Is there any way to make the check accept these characters?
>
> They are in latin1 encoding.
>
> Thanks in advance!
>
> --
> *Igor Laltuf Marques*
> Economist (UFF)
> Master in urban and regional planning (IPPUR-UFRJ)
> Researcher at ETTERN e CiDMob
> https://igorlaltuf.github.io/
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

        [[alternative HTML version deleted]]

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to