In R, I was able to set the language environment by fixing the line in file "C:\Program Files\R\R-4.0.3\etc\Rconsole", line 70 below, set language to EN: language = EN In RStudio, I am not able to do that, except to include the line Sys.setenv(LANG="en"); in every one of my program file. That's too much work. Any idea? Thank you! [[alternative HTML version deleted]]
Maybe in .Rprofile? Maybe in .first in .Rprofile? Stephen Sefick, PhD On Tue, Nov 17, 2020, 08:01 Steven Yen <styen at ntu.edu.tw> wrote:> In R, I was able to set the language environment by fixing the line > > in file "C:\Program Files\R\R-4.0.3\etc\Rconsole", line 70 below, set > language to EN: > > language = EN > > In RStudio, I am not able to do that, except to include the line > > Sys.setenv(LANG="en"); > > in every one of my program file. That's too much work. Any idea? Thank you! > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. >[[alternative HTML version deleted]]
> On Nov 17, 2020, at 8:00 AM, Steven Yen <styen at ntu.edu.tw> wrote: > > In R, I was able to set the language environment by fixing the line > > in file "C:\Program Files\R\R-4.0.3\etc\Rconsole", line 70 below, set > language to EN: > > language = EN > > In RStudio, I am not able to do that, except to include the line > > Sys.setenv(LANG="en"); > > in every one of my program file. That's too much work. Any idea? Thank you! >Hi, You may be better served using and/or posting to RStudio's own support site: https://support.rstudio.com/ as they are a separate product from R itself. It sounds like there may be somewhat different session startup processes for RStudio, and they would be the best resource to assist you. Regards, Marc Schwartz
put it in your .Rprofile file. Read the R Installation and Administration Manusl for more info. On November 17, 2020 5:00:06 AM PST, Steven Yen <styen at ntu.edu.tw> wrote:>In R, I was able to set the language environment by fixing the line > >in file "C:\Program Files\R\R-4.0.3\etc\Rconsole", line 70 below, set >language to EN: > >language = EN > >In RStudio, I am not able to do that, except to include the line > >Sys.setenv(LANG="en"); > >in every one of my program file. That's too much work. Any idea? Thank >you! > > > > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >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.-- Sent from my phone. Please excuse my brevity.
Thanks. YES, include the line Sys.setenv(LANG="en"); in my Rprofile file and it worked. On 2020/11/18 ?? 12:43, Jeff Newmiller wrote:> put it in your .Rprofile file. Read the R Installation and Administration Manusl for more info. > > On November 17, 2020 5:00:06 AM PST, Steven Yen <styen at ntu.edu.tw> wrote: >> In R, I was able to set the language environment by fixing the line >> >> in file "C:\Program Files\R\R-4.0.3\etc\Rconsole", line 70 below, set >> language to EN: >> >> language = EN >> >> In RStudio, I am not able to do that, except to include the line >> >> Sys.setenv(LANG="en"); >> >> in every one of my program file. That's too much work. Any idea? Thank >> you! >> >> >> >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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.