2018-07-07

Warning message during R startup on Mac

Got the following warning messages, when run R Studio on Mac.
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_MONETARY failed, using "C"
>

SOLUTION

  1. Open Terminal
  2. Run the following command
  3. $ defaults write org.R-project.R force.LANG en_US.UTF-8
    
    KOREAN
    $ defaults write org.R-project.R force.LANG ko_KR.UTF-8
    
    FOR SHELL :: .bashrc .bash_profile .zshrc
    export LC_ALL=en_US.UTF-8
    
    KOREAN
    export LC_ALL=ko_KR.UTF-8
    
  4. Close Terminal
  5. Start R Studio again

No comments:

Post a Comment