The help file for "vector" in R 1.9.1 for Windows includes the following: x <- c(a = 1, b = 2) is.vector(x) as.vector(x) all.equal(x, as.vector(x)) ## FALSE I ran this just now and got TRUE. Should I bother to report such things? If yes, to whom? Thanks for all your hard work to make R a reality. It makes it so much easier to develop new statistical methods for almost any purpose and through that to contribute to building a better world for all. Sincerely, Spencer Graves p.s. Please excuse if I'm sending this to the wrong address. I went to www.r-project.org -> Mailing Lists and double clicked on an apparent hot link to "r-bugs" and got nothing (in Netscape 7.1 under Windows 2000). Therefore, I decided to send this to r-devel.
Martin Maechler
2004-Jul-21 17:08 UTC
[Rd] all.equal(, ) not considering names [was "vector documentation error?"]
>>>>> "Spencer" == Spencer Graves <spencer.graves@pdf.com> >>>>> on Wed, 21 Jul 2004 05:47:01 -0700 writes:Spencer> The help file for "vector" in R 1.9.1 for Windows includes the Spencer> following: Spencer> x <- c(a = 1, b = 2) Spencer> is.vector(x) Spencer> as.vector(x) Spencer> all.equal(x, as.vector(x)) ## FALSE Spencer> I ran this just now and got TRUE. yes, I get this as well {R-patched on Linux}. I'm sure that it never returned FALSE, since all.equal() doesn't ever. However it *did* give non TRUE in R versions up to 1.6.2 : > x <- c(a=1,b=2); all.equal(x, as.vector(x)) [1] "names for target but not for current" "TRUE" and it does give something similar in the our S-plus 6.1 version. Our documentation does nowhere specify what should happen exactly in this case, but I do doubt that the current behavior is correct. What do other (long time S language) users think? Spencer> Should I bother to report such things? yes, please, in any case! Spencer> If yes, to whom? As long as you have a "?" going with it, it's not something you should report as bug. In that case, you decide between R-help or R-devel and the posting guide has a paragraph on this. I think you decided very well for the current topic. <....> Spencer> p.s. Please excuse if I'm sending this to the Spencer> wrong address. I went to www.r-project.org -> Spencer> Mailing Lists and double clicked on an apparent hot Spencer> link to "r-bugs" and got nothing <....> Well, R-bugs is *not* a mailing list. You'll find its address in other places such as the R-FAQ or help(bug.report). Spencer> Therefore, I decided to send this to r-devel. The "therefore" wasn't quite correct IMO, but your conclusion anyway ;-)
Spencer Graves wrote:> The help file for "vector" in R 1.9.1 for Windows includes the > following: > x <- c(a = 1, b = 2) > is.vector(x) > as.vector(x) > all.equal(x, as.vector(x)) ## FALSEThat's a documentation bug (still there in R-devel from yesterday). I guess the author of the help page meant identical(x, as.vector(x)) ## FALSE Uwe> I ran this just now and got TRUE. > Should I bother to report such things? If yes, to whom? > Thanks for all your hard work to make R a reality. It makes it so > much easier to develop new statistical methods for almost any purpose > and through that to contribute to building a better world for all. > Sincerely, Spencer Graves > > p.s. Please excuse if I'm sending this to the wrong address. I went to > www.r-project.org -> Mailing Lists and double clicked on an apparent hot > link to "r-bugs" and got nothing (in Netscape 7.1 under Windows 2000). > Therefore, I decided to send this to r-devel. > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
Spencer Graves wrote:> The help file for "vector" in R 1.9.1 for Windows includes the > following: > x <- c(a = 1, b = 2) > is.vector(x) > as.vector(x) > all.equal(x, as.vector(x)) ## FALSE > > I ran this just now and got TRUE. > Should I bother to report such things? If yes, to whom? > Thanks for all your hard work to make R a reality. It makes it so > much easier to develop new statistical methods for almost any purpose > and through that to contribute to building a better world for all. > Sincerely, Spencer Graves > > p.s. Please excuse if I'm sending this to the wrong address. I went to > www.r-project.org -> Mailing Lists and double clicked on an apparent hot > link to "r-bugs" and got nothing (in Netscape 7.1 under Windows 2000). > Therefore, I decided to send this to r-devel.Whoops. Haven't read your message completely. The DNS entry for bugs.r-project.org seems to be broken. A working address is: http://r-bugs.biostat.ku.dk/cgi-bin/R Uwe Ligges> ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel