[R] Fwd: Re: East Asian language

Gabor Grothendieck ggrothendieck at gmail.com
Fri Jul 15 12:38:39 CEST 2005


I am not sure how generally this works but I was able to get it to switch
back and forth between two languages within  a single R
session like this:

> Sys.getenv("LANGUAGE")
LANGUAGE
      ""
> q() # note English prompt; c means continue rather than exiting
Save workspace image? [y/n/c]: c
> Sys.putenv(LANGUAGE="it")
> q() # note Italian prompt
Salva area di lavoro? [y/n/c]: c
> Sys.putenv(LANGUAGE="en")
> q() # now we are back to English
Save workspace image? [y/n/c]: n


On 7/15/05, Pingping Zheng <pingping.zheng at lancaster.ac.uk> wrote:
> That's pretty convenient. Set LANGUAGE in .Renviron
> under current directory is convenient for both Linux and
> windows users.
> 
> Thanks.
> 
> Pingping Zheng
> Department of Mathematics and Statistics
> Fylde College
> Lancaster University
> Lancaster LA1 4YF
> UK
> 
> 
> Uwe Ligges wrote:
> > Pingping Zheng wrote:
> >
> >
> >>Dear all,
> >>
> >>I think what Nan Lin wanted is "How to change the language used in R
> >>console by re-setting something within R?"
> >>
> >>For a non-english user, sometime we prefer to set the system default
> >>language to a native one and use english in individual programs when
> >>we think necessary.
> >>
> >>a) setting the envrionment variable LANGUAGE=en will make an impact
> >>     on the whole system, which has its side effects.
> >>b) changing language setup through control panel is telling people to throw
> >>     away their native windows system, let's all use English system.
> >>
> >>Any better idea?
> >
> >
> > What about setting LANGUAGE in .Renviron?
> > See ?.Renviron
> >
> > Uwe Ligges
> >
> >
> >
> >>--------
> >>Pingping Zheng
> >>Department of Mathematics and Statistics
> >>Fylde College
> >>Lancaster University
> >>Lancaster LA1 4YF
> >>UK
> >>
> >>
> >>Baoqiang Cao wrote:
> >>
> >>
> >>>---- Original message ----
> >>>
> >>>
> >>>
> >>>>Date: Thu, 14 Jul 2005 19:50:41 +0200
> >>>>From: Uwe Ligges <ligges at statistik.uni-dortmund.de>
> >>>>Subject: Re: [R] East Asian language
> >>>>To: Nan Lin <nlin at math.wustl.edu>
> >>>>Cc: r-help at stat.math.ethz.ch
> >>>>
> >>>>Nan Lin wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Dear all,
> >>>>>
> >>>>>I just installed R 2.1.1. The installation program
> >>>
> >>>automatically recognized
> >>>
> >>>
> >>>
> >>>>>my Windows XP was using Chinese language, so now my R
> >>>
> >>>console displays
> >>>
> >>>
> >>>
> >>>>>everything in Chinese. How can I still let R console
> >>>
> >>>display in English
> >>>
> >>>
> >>>
> >>>>>without modifying my Window XP language setup? Thank you so
> >>>
> >>>much!
> >>>
> >>>
> >>>
> >>>>E.g. by setting the envrionment variable
> >>>>LANGUAGE=en
> >>>>
> >>>
> >>>Or, like what I did, change XP language setting back to
> >>>English from the control panel.
> >>>
> >>>
> >>>
> >>>
> >>>>Uwe Ligges
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Best,
> >>>>>
> >>>>>Nan
> >>>>>
> >>>>>______________________________________________
> >>>>>R-help at stat.math.ethz.ch mailing list
> >>>>>https://stat.ethz.ch/mailman/listinfo/r-help
> >>>>>PLEASE do read the posting guide!
> >>>
> >>>http://www.R-project.org/posting-guide.html
> >>>
> >>>
> >>>
> >>>>______________________________________________
> >>>>R-help at stat.math.ethz.ch mailing list
> >>>>https://stat.ethz.ch/mailman/listinfo/r-help
> >>>>PLEASE do read the posting guide!
> >>>
> >>>http://www.R-project.org/posting-guide.html
> >>>
> >>>______________________________________________
> >>>R-help at stat.math.ethz.ch mailing list
> >>>https://stat.ethz.ch/mailman/listinfo/r-help
> >>>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> >>>
> >>
> >>
> >>______________________________________________
> >>R-help at stat.math.ethz.ch mailing list
> >>https://stat.ethz.ch/mailman/listinfo/r-help
> >>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> >
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> >
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list