Hi

I would like to change the locale when using R CMD BATCH. Usually, if I
want to run it in english, for R in console/GUIs, I edit the .Rprofile
file, adding:
Sys.setlocale("LC_ALL","en_US.UTF8")
Sys.setlocale("LC_MESSAGES","en_US.UTF8")

But while this works for interactive R, it does not for R CMD BATCH. The
problem is that running tests for a package, these are run in a non-english
locale, but R CMD check runs them in english locale, giving me messages
about mismatches between *.R and *.Rout.save like:
< Warning messages:
---
> Messages d'avis :

Does anyone know how to specify the locale for R CMD BATCH? Is'nt it
supposed to read the .Rprofile? It seems R CMD BATCH should, given that
there is the option not to read it... (cf. --no-init-file)

Thanks!

Matthieu

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to