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,555
  • 31
  • 31
  • 45
DaniCee
  • 2,397
  • 6
  • 36
  • 59

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
  • 96
  • 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