[Rd] Help page of "par"

Martin Maechler maechler at stat.math.ethz.ch
Sat Nov 26 18:36:12 CET 2005


Thank you, Berwin.

You are definitely right,
and I have committed a fix to R-patched and R-devel.

Maybe  help(par)  has been just too long a document to be really read .. ;-)

Martin

>>>>> "BeT" == Berwin A Turlach <berwin at maths.uwa.edu.au>
>>>>>     on Sun, 27 Nov 2005 00:51:51 +0800 writes:

    BeT> Dear all,
    BeT> the second paragraph on the value returned by par() on the help page
    BeT> of par says:

    BeT> When just one parameter is queried, the value is a character
    BeT> string. When two or more parameters are queried, the result is a
    BeT> list of character strings, with the list names giving the
    BeT> parameters.

    BeT> But this does not seem to be correct:

    >> par("lty", "ask", "lwd", "oma")
    BeT> $lty
    BeT> [1] "solid"

    BeT> $ask
    BeT> [1] FALSE

    BeT> $lwd
    BeT> [1] 1

    BeT> $oma
    BeT> [1] 0 0 0 0

    BeT> Only the first one is a character string, the other ones are a
    BeT> logical, a number and a vector of numbers, respectively.  Should it
    BeT> rather be something like (also in view of the next sentence):

    BeT> When just one parameter is queried, the value of that parameter
    BeT> is returned as a vector.  When two or more parameters are
    BeT> queried, their values are returned in a list, with the list names
    BeT> giving the parameters.

    BeT> Cheers,

    BeT> Berwin

    BeT> ______________________________________________
    BeT> R-devel at r-project.org mailing list
    BeT> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list