Aug 13, 2022 19:33
During my studies at Google Courses, I needed to install R on my Mac OS X version 11.6.8. I downloaded the last version (several packs) and it was installed. When I started up, I got the error. Several times, it was the same. I reinstalled it several times. Didn't help.
So, the error was:
______
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_COLLATE failed, using "C"
3: Setting LC_TIME failed, using "C"
4: Setting LC_MESSAGES failed, using "C"
5: Setting LC_PAPER failed, using "C"
[R.app GUI 1.50 (6126) x86_64-apple-darwin9.8.0]
WARNING: You're using a non-UTF8 locale, therefore only ASCII characters will work. Please read R for Mac OS X FAQ (see Help) section 9 and adjust your system preferences accordingly. [History restored from /Users/natachesnova/.Rapp.history]
______
So, as you may understand to “read R for Mac OS X FAQ (see Help) section 9” didn’t help at all. Hours later, I found a SOLUTION :
1. Open Terminal
2. Write or COPY/PASTE: defaults write org.R-project.R force.LANG en_US.UTF-8
3. Close Terminal (including any R windows)
4. Start R again
For someone who runs R in a Docker environment (under root), try to run R with the below command:
LC_ALL=C.UTF-8 R
#instead of just `R`
#nalatty #WWW (we will win)
#macos #R #installation
#macos,
#nalatty,
#installation,
#www,
#r,
#instead