-
Notifications
You must be signed in to change notification settings - Fork 71
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
Reject styling wrongly parsed coder #883
Conversation
R/parse.R
Outdated
if (any(is_unicode_parsing_error)) { | ||
rlang::abort( | ||
"Can't parse input due to unicode restriction in base R. Please ", | ||
"upgrade R to style this input. ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can specify the exact version of R here that the user needs to upgrade to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I adapted it.
1cd9ec8
to
1b0f5ea
Compare
Codecov Report
@@ Coverage Diff @@
## main #883 +/- ##
==========================================
- Coverage 89.76% 89.63% -0.13%
==========================================
Files 47 47
Lines 2500 2509 +9
==========================================
+ Hits 2244 2249 +5
- Misses 256 260 +4
Continue to review full report at Codecov.
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if a33c2ab is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
Closes #847. Turns out we can't fix the problem because we can't construct a string like
"\U2660"
from "\U" and 2660: Error: '\U' used without hex digits in character string starting ""\U"". So windows users have to wait for R 4.2. @IndrajeetPatil I added a test to make sure it errors under certain circumstances.