[R-pkg-devel] ASCII code for Degree symbol °

Avraham Adler @vr@h@m@@d|er @end|ng |rom gm@||@com
Mon Jan 24 02:56:37 CET 2022


https://theasciicode.com.ar/extended-ascii-code/degree-symbol-ascii-code-248.html

On Mon, Jan 24, 2022 at 1:55 AM Rafael H. M. Pereira
<rafa.pereira.br using gmail.com> wrote:
>
> Hi all.
>
> In one of the functions of my package (flightsbr), I have a vector with
> character strings where I need to replace the degree symbol ° with a point
> '.' So this is what I do:
>
> vec <- gsub("[°]", ".", vec)
>
> However, I keep getting this Warning from devtools::check():
>   Found the following file with non-ASCII characters:
>     utils.R
>   Portable packages must use only ASCII characters in their R code,
>   except perhaps in comments.
>   Use \uxxxx escapes for other characters.
>
> I assume there is a ASCII representation of °, but I cannot really find a
> way to do this using ASCII  characters. Any ideas?
>
> best,
> Rafael Pereira
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list