Re: [Rd] Testing for English locale

2005-08-01 Thread Simon Urbanek
On Aug 1, 2005, at 10:20 AM, John Fox wrote: > Is there a platform-independent way to test whether R is running in > an English locale? I suppose the following should work: Sys.getlocale("LC_CTYPE")=="C" || length(grep("^en",Sys.getlocale ("LC_CTYPE"),TRUE))>0 Basically unix platforms will h

[Rd] Testing for English locale

2005-08-01 Thread John Fox
Dear r-devel list members, Is there a platform-independent way to test whether R is running in an English locale? Thanks, John John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfo