1

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

General Grievance
  • 4,259
  • 21
  • 28
  • 43
DaniCee
  • 2,073
  • 6
  • 29
  • 52

1 Answers1

0

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!

Kian
  • 86
  • 5
  • I tried the long term solution for mac in one of the answers in the link (`defaults write org.R-project.R force.LANG en_US.UTF-8`) but it does not seem to do anything for me – DaniCee Apr 04 '22 at 04:20