How to change the language of R?

Asked

Viewed 6,648 times

7

When installing the on my machine I realized that the menus and console outputs were all in English.

How do I change to English? Inside the RGui I couldn’t find any option to change the language and cannot reinstall the on my machine (corporate environment and do not have access to Local Administrator).

2 answers

10


Go to the folder where R was installed which should be so:

inserir a descrição da imagem aqui

Enter the folder etc and edit the file RConsole:

inserir a descrição da imagem aqui

Change the line that starts with language = and put language = en.

inserir a descrição da imagem aqui

  • Since R is installed in the program file, I was unable to edit this file for filesystem permission. I’ve managed differently here, I’ll wait a little longer to see if more answers come along.

  • @gmsantos All you need is to start Notepad (or another text editor) as an administrator to be allowed to edit the files. Daniel’s answer is the correct one.

  • @Andréribeiro am in a corporate environment and do not have Administrator access on my local machine.

  • 1

    Has the command Sys.setenv(LANGUAGE = "en") also, but with me it doesn’t always work.

3

Two other ways to change the language of R sane:

  1. Run the command below on the R, then close and open again (here it worked like this)

    Sys.setenv(LANGUAGE = "en")
    
  2. Add to shortcut of R the argument LANGUAGE = EN

    Propriedades do Atalho

Browser other questions tagged

You are not signed in. Login or sign up in order to post.