-
Notifications
You must be signed in to change notification settings - Fork 186
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
Sort default_undesirable docs robustly #2455
Conversation
Yes, indeed, I was seeing these diffs in this |
Me too. I manually roll those changes back before committing. Similarly for some snapshot tests (Windows recreates them with CRLF endings on at least one of my machines) |
OK, switched to using Per r-lib/withr#179, it's also possible to see some interference with |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2455 +/- ##
=======================================
Coverage 98.53% 98.53%
=======================================
Files 126 126
Lines 5676 5676
=======================================
Hits 5593 5593
Misses 83 83 ☔ View full report in Codecov by Sentry. |
In case that's useful, |
@Bisaloo This is great! With the default sorting methodcallr::r(
function() withr::with_collate("C", sort(c("a", "_a", "A"))),
env = c(LC_COLLATE = "C")
)
#> [1] "A" "_a" "a"
callr::r(
function() withr::with_collate("en_US", sort(c("a", "_a", "A"))),
env = c(LC_COLLATE = "en_US")
)
#> [1] "_a" "a" "A" With the radix sorting methodcallr::r(
function() withr::with_collate("C", sort(c("a", "_a", "A"), method = "radix")),
env = c(LC_COLLATE = "C")
)
#> [1] "A" "_a" "a"
callr::r(
function() withr::with_collate("en_US", sort(c("a", "_a", "A"), method = "radix")),
env = c(LC_COLLATE = "en_US")
)
#> [1] "A" "_a" "a" Created on 2023-12-16 with reprex v2.0.2 |
awesome idea! thank you {data.table} 😅 |
Have been getting some spurious diffs vs.
main
on this. Is anyone else seeing it? I'm a bit surprised because thedefault*
objects are coming frommodify_defaults()
, which usesplatform_independent_order()
already:lintr/R/with.R
Line 59 in fdbb9bf
Maybe this is a call to improve
platform_independent_order()
? That's pretty rudimentary indeed:lintr/R/utils.R
Lines 206 to 207 in fdbb9bf