[Rd] Strange bug with pretty()
Duncan Murdoch
dmurdoch@pair.com
Sat, 23 Dec 2000 16:45:27 GMT
Here's a strange bug. I recompiled R 1.2.0 in Windows with DEBUG=T,
and this gives pretty() some pretty strange behaviour. If executed
just after a session opens:
> pretty(c(-0.015,1.015))
[1] -2.000000e-01 -2.775558e-17 2.000000e-01 4.000000e-01
6.000000e-01
[6] 8.000000e-01 1.000000e+00 1.200000e+00
The same result repeats if I repeat the command.
However, if I now ask for help on pretty, close the help window and
try again:
> ?pretty
> pretty(c(-0.015,1.015))
[1] -0.2 0.0 0.2 0.4 0.6 0.8 1.0 1.2
>
This doesn't happen with the Windows binary distribution.
The compiler I'm using is the mingw32 compiler, with version
information
gcc version 2.95.2 19991024 (release)
Is this a compiler problem, a problem with DEBUG=T, or something wrong
with pretty?
Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._