Skip to content
Prev 5824 / 12125 Next

[R-pkg-devel] Check Error Due to Unicode in Documentation

Thanks for the quick response both Duncan and G?bor.  I've reported it here in case others want to follow-up there: https://github.com/r-lib/roxygen2/issues/1121

-----Original Message-----
From: G?bor Cs?rdi <csardi.gabor at gmail.com> 
Sent: Thursday, July 23, 2020 5:25 PM
To: Duncan Murdoch <murdoch.duncan at gmail.com>
Cc: bill at denney.ws; R Package Devel <r-package-devel at r-project.org>
Subject: Re: [R-pkg-devel] Check Error Due to Unicode in Documentation
On Thu, Jul 23, 2020 at 9:58 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
[...]
I don't think roxygen2 intentionally converts \u sequences, I think this is just a consequence of the parse() + deparse() roundtrip:

x <- '"\\u03bc"'
charToRaw(x)
#>  [1] 22 5c 75 30 33 62 63 22
y <- deparse(eval(parse(text = x)))
charToRaw(y)
#> [1] 22 b5 22

Bill, please report a roxygen2 issue at
https://github.com/r-lib/roxygen2/issues and we can probably fix this.
Thanks!

Gabor