Follow these steps to configure the locale for R on macOS M1:
Type the following command and press enter:
sudo nano /etc/locale.gen
Type your password if prompted and press enter.
Type the following command and press enter to generate the new locale:
sudo locale-gen
Type the following command and press enter to update the system’s locale:
sudo update-locale LANG=en_US.UTF-8
Close the terminal app and restart your computer for the changes to take effect.
Open R and check that the locale has been set correctly by typing the following command in the console:
Sys.getlocale()
This should return "en_US.UTF-8" indicating that the locale has been set correctly.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-11-09 11:00:00 +0000
Seen: 17 times
Last updated: Aug 02 '22
What is the method for entering multiple paragraphs with line spacing?
How do I delete my Git credentials?
What is the method to use for pressing the enter key with Appium in C#?
What is the alternative shortcut for Rider's alt + enter in VSCode?
Is it impossible to remove brew from MacOS Apple Silicon?
Bash cannot find the "pre-commit" command even though it is installed on macOS.
On MacOS, I am unable to establish an SSH connection to my Debian server.
What is the method to access a (.log) file through my macOS application?
Is it not possible to copy text from a terminal session on macOS with tmux to the clipboard?