You can change the language in which R is talking to the user from the
definition of the LANG
environment variable:
> Sys.getenv("LANG")
[1] "fr_FR.UTF-8"
> log(-3)
Warning in log(-3): production de NaN
[1] NaN
Changing to English:
> Sys.setenv(LANG = "en_US.UTF-8")
> log(-3)
Warning in log(-3): NaNs produced
[1] NaN
and back to French:
> Sys.setenv(LANG = "fr_FR.UTF-8")
> log(-3)
Warning in log(-3): production de NaN
[1] NaN
Or, alternatively:
> Sys.setenv(LANG = "en")
> log(-3)
Warning in log(-3): NaNs produced
[1] NaN
and then:
> Sys.setenv(LANG = "fr")
> log(-3)
Warning in log(-3): production de NaN
[1] NaN