Skip to content
Back to formatted view

Raw Message

Message-ID: <17288.40204.421391.330744@stat.math.ethz.ch>
Date: 2005-11-26T17:36:12Z
From: Martin Maechler
Subject: Help page of "par"
In-Reply-To: <17288.37543.501344.534298@bossiaea.maths.uwa.edu.au>

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