[R] R gnome and lda: found the difference

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Feb 22 14:23:58 CET 2002


Agustin Lobo <alobo at ija.csic.es> writes:

> Saving lda.default as text files from within gui="none" and from within
> gui="gnome" 
> and comparing afterwards with diff, I get:
> 
> alobo at humboldt:> diff lda.default.gnome.txt lda.default.nognome.txt
> 1c1
> < function (x, grouping, prior = proportions, tol = 1, method =
> c("moment",
> ---
> > function (x, grouping, prior = proportions, tol = 1e-04, method =
> c("moment",
> 61c61
> <             if (all(abs(w - w0) < 0,01))
> ---
> >             if (all(abs(w - w0) < 0.01))
> 109c109
> <         dist <- 0 * dist - matrix(log(prior), n, ng, byrow = TRUE)
> ---
> >         dist <- 0.5 * dist - matrix(log(prior), n, ng, byrow = TRUE)
> 
> It's clear then that R with the gnome gui uses a different copy
> of lda.default, 
> but the output of .path.package is identical:
> > .path.package()
> [1] "/usr/local/lib/R/library/MASS"  "/usr/local/lib/R/library/ctest"
> [3] "/usr/local/lib/R/library/base" 
> 
> I don't think I can go further on my own, is this something that I should
> submit as a bug?

Maybe just let Martyn dig a little further and let him file the bug?

The comma in "if (all(abs(w - w0) < 0,01))" strongly suggests that we
have a locale problem (something is messing with LC_ALL and/or
LC_NUMERIC). We have seen some of these unexpected locale changes on
Microsoft platforms earlier -- as I keep saying: Gnome sometimes tries
too hard to be like Windows...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list