[R] Eclipse and R

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Aug 12 17:17:11 CEST 2008


You should set environment variables in the environment, not from a 
program.  See rw-FAQ Q2.15 (and you may be able to set them in Eclipse 
before it starts R).

On Tue, 12 Aug 2008, Sergey Goriatchev wrote:

> I tried with Sys.setenv() in Eclipse environment in the following manner:
>
>> Sys.getenv("LANGUAGE")
> LANGUAGE
>      ""
>> Sys.setenv(LANGUAGE="en")
>> Sys.getenv("LANGUAGE")
> LANGUAGE
>    "en"
>
> Once I've done this at the beginning of the session, warnings are in English.
> When I exit Eclipse and then restart, it is back to German and
> LANGUAGE environment variable is back to " ".
>
> I am running R-2.7.1 on a Vista SP1 machine. I have Eclipse 3.4.0 with
> StatET 0.6.0
>
> I just tried to put a modified .RProfile file into Eclipse working
> directory (I got that by typing getwd() at Eclipse prompt) and it
> loads up (because I have fortunes() specified in .RProfile). In
> .RProfile I put Sys.setenv(LANGUAGE="en") and it works to the extent
> that warning messages are now in English, but at startup I still see
> German text, like that:
> ----------------------------------
> R version 2.7.1 (2008-06-23)
> Copyright (C) 2008 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
>
> R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
> Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
> Tippen Sie 'license()' or 'licence()' für Details dazu.
>
> R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
> Tippen Sie 'contributors()' für mehr Information und 'citation()',
> um zu erfahren, wie R oder R packages in Publikationen zitiert werden können.
>
> Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
> 'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
> Tippen Sie 'q()', um R zu verlassen.
>
>
> R is the lingua franca of statistical research. Work in all other languages
> should be discouraged.
>   -- Jan de Leeuw (as quoted by Matt Pocernich on R-help)
>      JSM 2003, San Francisco (August 2003)
>
>
>   Welcome to R!
> ----------------------------
>
> Is there a way to make everything show in English?
>
> Thank you all (especially Prof. Ripley) in advance for your help.
>
> Sergey
>
> On Tue, Aug 12, 2008 at 4:33 PM, Prof Brian Ripley
> <ripley at stats.ox.ac.uk> wrote:
>> Most internationalized programs (including R) respond to the LANGUAGE
>> environent variable: have you tried setting it to "en"?
>>
>> We would need to know your OS to help more (it looks like it might be
>> Windows or possibly Mac OS: the terms used are not right for either).
>>
>> On Tue, 12 Aug 2008, Sergey Goriatchev wrote:
>>
>>> Hello,
>>>
>>> I am running R in Eclipse, and when I start Eclipse or when I get
>>> error messages, they are in German.
>>> (My computer's regional language settings are German.) Is there a way
>>> to switch to English in Eclipse
>>> without changing my global regional language settings? In basic R GUI
>>> this is possible in RGUI configuration editor.
>>>
>>> Anyone can help? Thank you in advance!
>>>
>>> Sergey
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>> --
>> 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
>>
>
>
>
> -- 
> I'm not young enough to know everything. /Oscar Wilde
> Experience is one thing you can't get for nothing. /Oscar Wilde
> When you are finished changing, you're finished. /Benjamin Franklin
> Tell me and I forget, teach me and I remember, involve me and I learn.
> /Benjamin Franklin
> Luck is where preparation meets opportunity. /George Patten
>

-- 
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


More information about the R-help mailing list