This question already has answers here:
Installing R on Mac - Warning messages: Setting LC_CTYPE failed, using “C”

(6个答案)


1年前关闭。




通过自制软件安装R后,无需在OSX中即可获得以下输出:
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"         # this line is not occurring in OSX 10.10.1 Yosemite but other four are.

我找到了一个现有的question,但是该解决方案对我不起作用。我做这个
  • 打开终端
  • 写入或粘贴:defaults write org.R-project.R force.LANG en_US.UTF-8
  • 关闭终端
  • 开始R

  • 并且仍然显示警告消息。我猜这在使用R项目页面上的软件包安装R时可行。

    在OSX中安装R后如何摆脱这些警告消息?

    最佳答案

    对于R,这是从终端开始的工作

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

    参见Installing R on Mac - Warning messages: Setting LC_CTYPE failed, using "C"

    关于r - 安装R后如何摆脱警告消息? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27299420/

    10-11 07:50