[R-pkg-devel] Changing the locale

Serguei Sokol @ergue|@@oko| @end|ng |rom gm@||@com
Wed Mar 16 14:45:34 CET 2022


Le 16/03/2022 à 14:29, Ben Engbers a écrit :
> H,
> 
> I
> - used the alternatives-command to change to R-devel (2021-12-10 r81318),
> - changed the locale in Fedora,
> - restarted RStudio,
> - Sys.setlocale() to locale = "en_GB",
> - restarted RStudio,
> - rebuilt the package and
> - ran the .rmd but I still get the Dutch messages.
> 
> Is there a way to delete the cached  messages?
When I wish to get R messages in English (while having locale of my 
Ubuntu set to fr_FR.UTF-8), I start it with:

   $ LANG=en R

In your case, you can try:

   $ LANG=en rstudio

Hoping it helps,
Best,
Serguei.

> 
> Ben
> 
> Op 16-03-2022 om 12:31 schreef Lluís Revilla:
>> Hi Ben,
>>
>> I'm not sure how you changed the locales, but this seems to be related
>> to a bug already reported:
>> When changing the language of R the messages are cached and are not
>> translated again [1] (this is already fixed on R-devel).
>> If it is related to this, you could set up the locale before starting
>> R to avoid receiving the messages in an undesired language.
>>
>> I hope this helps,
>>
>> Lluís
> 
>



More information about the R-package-devel mailing list