-
Notifications
You must be signed in to change notification settings - Fork 70
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
Allow turning symbols off on UTF-8 platforms #29
Conversation
I might be missing sg, but this will not fix the problem, imo. I think the correct solution is getOption("cli.unicode", l10n_info()$`UTF-8`) no? |
Codecov Report
@@ Coverage Diff @@
## master #29 +/- ##
========================================
+ Coverage 60% 60.8% +0.8%
========================================
Files 9 9
Lines 375 375
========================================
+ Hits 225 228 +3
+ Misses 150 147 -3
Continue to review full report at Codecov.
|
R/strrep.R
Outdated
@@ -0,0 +1,8 @@ | |||
if (getRversion() < "3.3.0") { | |||
strrep <- function(x, times) { | |||
map_chr( |
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.
I don't think we have map_chr
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.
Okay to add purrr-compat.R
?
Don't worry about the test failure. I am fixing those. It is a mess because if testthat now (almost!) parsing everything in UTF-8 and a |
Can you please just undo the test fix or remove the |
The test fix seems a consequence of my changes, can't undo without test failures. ? |
That's fine, don't worry about test failures. I'll fix the tests, once |
Done. |
(Although I'm fairly certain we still need to adapt the test like I did in 0ce2b5a.) |
Thanks! A rule test case is easy adapt like that, but more complicated output is hard. |
Related: #27.
I'm not sure this is the best way to do this, but the original code didn't support turning it off at all (short of setting
LC_CTYPE = "C"
).