R info and error and warning messages showing in Spanish for some reason... How to change back to English?

117 Views Asked by At

I recently made a trip to Spain with my laptop, and ever since then, all R warnings and error messages show in Spanish. I don't recall having changed any settings at all.

This only happens in R, everything else shows properly in English.

I am on macOS Monterey using R version 4.1.2. Language & Region in my System Settings are correctly set to my current location and preferred language (English).

However, R still shows everything in Spanish... My Sys.getlocale() shows the following:

> Sys.getlocale()
[1] "C/UTF-8/C/C/C/C"

See screenshot for the last error message I got trying some new code... when launching R, the main welcome message shows in Spanish too... Thanks!

test

1

There are 1 best solutions below

1
Kian On

This question has been answered before in greater detail but in short, you can use Sys.setenv() and set LANG = "en". This is a temporary solution but long-term solutions are in the link above. Hope this helps!