[Rd] Help page of "par"

From: Berwin A Turlach <berwin_at_maths.uwa.edu.au>
Date: Sat 26 Nov 2005 - 16:51:51 GMT


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



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun Nov 27 03:56:57 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:34 GMT