Hi How do I set the language of the GUI? With R 2.1.0 it suddenly changed to German and I want it to stay English. I couldn't find any setting to change. Regards, Stephan
R 2.1.0 GUI language
4 messages · Stephan Tolksdorf, Brian Ripley
On Mon, 18 Apr 2005, Stephan Tolksdorf wrote:
How do I set the language of the GUI? With R 2.1.0 it suddenly changed to German and I want it to stay English. I couldn't find any setting to change.
Which OS is this? PLEASE do read the posting guide. This *is* documented in the `R Installation and Adminstration' Manual, section `Internationalization'. If your OS is set to German, then why don't you expect R to follow? If you don't want German menus, do you want German months (as has happened for many versions). For Windows or Linux, to just change the language of messages, set environment variable LANGUAGE=en. To set all aspects, set LC_ALL=en. I don't know about MacOS X menus.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Thanks for your prompt reply.
Which OS is this? PLEASE do read the posting guide.
Win XP, SP2 (German), which I forgot to mention despite heaving read the guide.
This *is* documented in the `R Installation and Adminstration' Manual, section `Internationalization'.
Looked in the wrong place (and the help isn't globally searchable).
If your OS is set to German, then why don't you expect R to follow?
I'd just like to have an option to change the language. English is my working language and the common denominator of my tool chain. German warning messages probably also wouldn't be much help to me when asking for help on this list. By the way, I'd be quite afraid to suddenly see the German decimal comma instead of point in my program output, but fortunately R isn't that localized.
If you don't want German menus, do you want German months (as has happened for many versions). For Windows or Linux, to just change the language of messages, set environment variable LANGUAGE=en. To set all aspects, set LC_ALL=en. I don't know about MacOS X menus.
LC_ALL doesn't seem to change the message language. LC_MESSAGES,
which is mentioned in the installation and administration guide,
doesn't seem to exist in R 2.1.0 and isn't listed in the locales help.
I helped myself by putting
Sys.putenv("LANGUAGE"="EN");Sys.setlocale("LC_ALL","EN")
into etc/Rprofile. Don't know if this is the default way to go.
Stephan
On Mon, 18 Apr 2005, Stephan Tolksdorf wrote:
[...]
LC_ALL doesn't seem to change the message language. LC_MESSAGES, which is mentioned in the installation and administration guide, doesn't seem to exist in R 2.1.0 and isn't listed in the locales help.
Right: it cannot be set inside R. For as the manual says: Note that you should not expect to be able to change the language once R is running. But it can be set as an environment variable outside R, as described in the rw-FAQ. Setting either LC_MESSAGES or LC_ALL=de on the command line works for me.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595