An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20100210/227e3f39/attachment.pl>
Error on forcing change to utf-8 locale on R.app
3 messages · Simon Urbanek, Prashanth NS
On Feb 10, 2010, at 7:15 AM, Prashanth NS wrote:
Dear all, I am a new mac user and an inexperienced R user, now using the latter on the former! On running the R.app on my Macbook Pro with OS X Snowleopard, warnings about non UTF-8 locale showed up.
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. As per the R for Mac OS X FAQ as well as this ( https://stat.ethz.ch/pipermail/r-sig-mac/2008-October/005395.html) post, I ran the following in the app.
defaults write org.R-project.R force.LANG en_US.UTF-8 Error: unexpected symbol in "defaults write"
Could somebody help with this?
You're supposed to paste that in the shell (Applications -> Utilities - Terminal) not in R.
In R you have to change that to
system("defaults write org.R-project.R force.LANG en_US.UTF-8")
Cheers,
Simon
Dear Simon, David and others, Thanks. It is now working fine after running it in the shell. Regards, Prashanth
On 11/02/10 1:36 AM, "Simon Urbanek" <simon.urbanek at r-project.org> wrote:
On Feb 10, 2010, at 7:15 AM, Prashanth NS wrote:
Dear all, I am a new mac user and an inexperienced R user, now using the latter on the former! On running the R.app on my Macbook Pro with OS X Snowleopard, warnings about non UTF-8 locale showed up.
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. As per the R for Mac OS X FAQ as well as this ( https://stat.ethz.ch/pipermail/r-sig-mac/2008-October/005395.html) post, I ran the following in the app.
defaults write org.R-project.R force.LANG en_US.UTF-8 Error: unexpected symbol in "defaults write"
Could somebody help with this?
You're supposed to paste that in the shell (Applications -> Utilities -
Terminal) not in R.
In R you have to change that to
system("defaults write org.R-project.R force.LANG en_US.UTF-8")
Cheers,
Simon