I'm a mac user and want to change R locale to English.
I know defaults write
should set R's locale on osx. But, strangely, the command doesn't work.
defaults write org.R-project.R force.LANG en_US.UTF-8
When I launch R by executing R.app, English messages are properly shown, but Terminal.app shows Japanese messages:
My Environment is as follows:
Result of sessionInfo()
on Terminal:
> 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
On 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
As @plannapus wrote, starting R with Language=en R
works well in my environment. See here.
Thank you for your help.
edit (2013/11/8)
According to gentle community replies, there seems to be several solutions. As for me, both of these ways works well.
Language=en R
(already mentioned previous post)Language=en R
to ~/.RenvironIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With