[Rd] Help page of "par"

Berwin A Turlach berwin at maths.uwa.edu.au
Sat Nov 26 17:51:51 CET 2005


Dear all,

the second paragraph on the value returned by par() on the help page
of par says:

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

But this does not seem to be correct:

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

$ask
[1] FALSE

$lwd
[1] 1

$oma
[1] 0 0 0 0

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

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

Cheers,

        Berwin



More information about the R-devel mailing list