Why does testthat 2.3.2 use a different sort()
问题 (This question is also asked at Github here) After an upgrade of R to 4.0.2 tests fail because it seems, the algorithm of sort in testthat changed. The following shows, that base::sort() and browser() are fine in R 4.0.2 (See this question, why this check is added.): y <- c("Schaffhausen", "Schwyz", "Seespital", "SRZ") print(sort(y)) # [1] "Schaffhausen" "Schwyz" "Seespital" "SRZ" browser() print(sort(y)) # [1] "Schaffhausen" "Schwyz" "Seespital" "SRZ" But if you create a package, call it