[Rd] Possible error in ?axTicks

Martin Maechler maechler at stat.math.ethz.ch
Tue Feb 24 16:03:50 MET 2004


>>>>> "Marc" == Marc Schwartz <MSchwartz at medanalytics.com>
>>>>>     on Thu, 19 Feb 2004 09:45:04 -0600 writes:

    Marc> Hi all,
    Marc> Before posting to r-bugs, I thought that I would just verify this one
    Marc> first.

    Marc> It looks like the help for axTicks() needs to be corrected.

    Marc> It presently says:

    Marc> 'axTicks()' can be regarded as an R implementation  of the C function
    Marc> 'CreateAtVector()' in '..../src/main/graphics.c' which is called by
    Marc> 'axis(side,*)' when no argument 'at' is specified.


    Marc> However, CreateAtVector() is actually in '..../src/main/plot.c' (line
    Marc> 684) instead. It is referenced in graphics.c.

    Marc> In r-devel's plot.c, it is at line 691 in plot.c instead and the same
    Marc> presumed error is in the r-devel version of the help for axTicks().

    >> From a review of older source tarballs, it appears that CreateAtVector()
    Marc> appears circa R version 0.62 and was in plot.c at that time. If my read
    Marc> of the source code is correct, it appears that CreateAtVector() either
    Marc> supplements and/or replaces GPretty() and GLPretty(), which have been in
    Marc> graphics.c, but I did not look too hard at that.

    Marc> Let me know if you want me to post this one.

Thank you, Marc, for finding this, and doing all the detective
work.
I've corrected the lapsus (which is my fault, as author of axTicks()).

Martin



More information about the R-devel mailing list