我是 mac 用户,想将 R 语言环境更改为英语。
我知道defaults write
应该在 osx 上设置 R 的语言环境。但是,奇怪的是,该命令不起作用。
defaults write org.R-project.R force.LANG en_US.UTF-8
当我通过执行 R.app 启动 R 时,会正确显示英文消息,但 Terminal.app 显示日文消息:
我的环境如下:
- Mac OS 10.8.5
- R 版本 3.0.1 (2013-05-16) -- “Good Sport” 平台:x86_64-apple-darwin10.8.0 (64-bit)
sessionInfo()
终端上的结果:
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] ja_JP.UTF-8/ja_JP.UTF-8/ja_JP.UTF-8/C/ja_JP.UTF-8/ja_JP.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
在 R.app 上:
R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] caret_5.17-7 grid_3.0.1 kernlab_0.9-18 lattice_0.20-15