From 20b925c1ee344d7aff48191e36419f71fd5c19df Mon Sep 17 00:00:00 2001 From: Jakob Krigovsky Date: Wed, 14 Apr 2021 17:03:48 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20str=5Fto=5Fupper=E2=80=99s=20default=20lo?= =?UTF-8?q?cale=20(#937)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From https://stringr.tidyverse.org/reference/case.html: > locale: Locale to use for translations. Defaults to "en" (English) to ensure consistent default ordering across platforms. --- strings.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings.Rmd b/strings.Rmd index 8ca0981..5fef7b6 100644 --- a/strings.Rmd +++ b/strings.Rmd @@ -177,7 +177,7 @@ str_to_upper(c("i", "ı"), locale = "tr") The locale is specified as a ISO 639 language code, which is a two or three letter abbreviation. If you don't already know the code for your language, [Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) has a good list. -If you leave the locale blank, it will use the current locale, as provided by your operating system. +If you leave the locale blank, it will use English. Another important operation that's affected by the locale is sorting. The base R `order()` and `sort()` functions sort strings using the current locale.