Get R warnings and errors in English

I would like R to show me debug messages in English, and not in my locale (Italian). Having messages in italians makes it difficult to browse online for help with debugging. Not to mention the fact that sometimes translations are at least careless.

How can I return R to use only the original version of messages, and not translate them?

thanks!

+6
source share
1 answer

You want to set the LANGUAGE environment variable ( see the corresponding documentation ):

Sys.setenv(LANGUAGE='en') 

To do this, you need to install message translations (which, in my opinion, are optional, at least on some platforms).

+6
source

Source: https://habr.com/ru/post/973177/


All Articles