I think I just broke R
On Sun, 3 Apr 2011, Uwe Ligges wrote:
On 03.04.2011 09:30, Alexander Engelhardt wrote:
Am 03.04.2011 03:51, schrieb Daniel Malter:
Check whether x, y, or glm have been redefined. If not, restart R.
I wouldn't call my function 'glm'. However, I did call one 'binomial'. That was my mistake. Thanks :) A few weeks ago I asked how to set my error messages to english, and Richard Heiberger told me to use 'Sys.setenv(LANG="EN")'. He used this example, which did work for me at first, but doesn't work now anymore:
> Sys.setenv(LANG="DE") > 2+"a"
Fehler in 2 + "a" : nicht-numerisches Argument f?r bin?ren Operator
> Sys.setenv(LANG="EN") > 2+"a"
Fehler in 2 + "a" : nicht-numerisches Argument f?r bin?ren Operator Does someone have any idea why that could be the case?
Use "LANGUAGE" rather than "LANG" as the environment variable.
Also, set it outside your R session, e.g. in your .Renviron file. You are supposed to be able to change this during an R session, but if you rely on OS facilities (as you probably do on Linux) rather than the gettext in the R sources, we have seen instances of the OS breaking this.
My sessionInfo() is here:
> sessionInfo()
R version 2.10.1 (2009-12-14)
and time to upgrade R Best, Uwe Ligges
i486-pc-linux-gnu locale: [1] LC_CTYPE=de_DE.utf8 LC_NUMERIC=C [3] LC_TIME=de_DE.utf8 LC_COLLATE=de_DE.utf8 [5] LC_MONETARY=C LC_MESSAGES=de_DE.utf8 [7] LC_PAPER=de_DE.utf8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=de_DE.utf8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595