10 October 2014

R warnings on Mac

Dear friends,



This was my oldest warnings that I haven't blogged.
It was when I run R on my Mac for the first time, few years a go. 
The following warnings popped out when R was starting:
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"
The problem was something about the default encoding and language between your Mac and R that were not matched.

I found solution on stackoverflow by typing (or copy pasting) the following script:

defaults write org.R-project.R force.LANG en_US.UTF-8

in your Mac terminal.

Then the warnings disappeared when you start R.

@dasaptaerwin
Post a Comment