[R-sig-Debian] R CMD BATCH: set locale?
Johannes Ranke
jranke at uni-bremen.de
Wed Oct 24 21:56:11 CEST 2012
Hi,
how about
export LC_ALL=C
Sidenote: Maybe more a question for r-help as it is not Debian specific?
Kind regards,
Johannes
Am Mittwoch 24 Oktober 2012, 20:32:22 schrieb Matthieu Stigler:
> 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 at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian
More information about the R-SIG-Debian
mailing list