-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode changed to symbol in usage section #592
Comments
If at the very beginning of the code block above, I set |
Just a quick note that I am also affected by this issue. Thanks for taking the time to document it. |
The problem is - on my Windows 7 box - that the .Rd file that is written out contains characters in latin1 encoding. On Linux everything works fine here. I wrote a test to investigate the problem: |
Not a new issue: |
* Helpers read_lines and write_lines do the right thing * readLines() and writeLines() through errors to prevent accidental re-use in the future * Warn if package encoding is not utf-8 Fixes #564. Fixes #592. Thanks to @jimhester for actually figuring out how to make this work.
@hadley Thanks, using unicode in default values for function arguments works nicely now!!! |
Roxygen2 6.0.1 changes unicode statements in function defaults.
In the usage section, rather than keeping \Uxxxx, it writes the represented symbol.
On Windows with German locale, this leads roxygenise to get stopped by an encoding error if run repeatedly.
Here is some code to reproduce the error.
The text was updated successfully, but these errors were encountered: