在Mac上安装R-警告消息:使用"C"设置LC_CTYPE失败. [英] Installing R on Mac - Warning messages: Setting LC_CTYPE failed, using "C"

查看:948
本文介绍了在Mac上安装R-警告消息:使用"C"设置LC_CTYPE失败.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在笔记本电脑Mac OS X 10.7.3版上安装R

I would like install R on my laptop Mac OS X version 10.7.3

我下载了最后一个版本,然后双击它并安装了它,当我启动时出现以下错误,我在互联网上搜索但无法解决问题,任何帮助将不胜感激

I downloaded the last version and I double click on it and it was installed, when i start up I get the following error, I searched in internet but I could not solve the problem, any help would be appreciated

错误是

启动期间-警告消息:
1:使用"C"设置LC_CTYPE失败
2:使用"C"设置LC_COLLATE失败
3:使用"C"设置LC_TIME失败
4:使用"C"设置LC_MESSAGES失败
5:使用"C"设置LC_PAPER失败
[R.app GUI 1.50(6126)x86_64-apple-darwin9.8.0]

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]

警告:您使用的是非UTF8语言环境,因此仅ASCII字符将起作用. 请阅读R for Mac OS X常见问题解答(请参阅帮助")第9节,并相应地调整系统偏好设置. [从/Users/nemo/.Rapp.history恢复的历史记录]

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/nemo/.Rapp.history]

推荐答案

  1. 打开终端
  2. 写入或粘贴:defaults write org.R-project.R force.LANG en_US.UTF-8
  3. 关闭终端(包括任何RStudio窗口)
  4. 开始R
  1. Open Terminal
  2. Write or paste in: defaults write org.R-project.R force.LANG en_US.UTF-8
  3. Close Terminal (including any RStudio window)
  4. Start R

这篇关于在Mac上安装R-警告消息:使用"C"设置LC_CTYPE失败.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆