Skip to content

html help fails for named vector objects (PR#9927)

1 message · Brian Ripley

#
On a normal R help system any version of help(letters) tries to give you 
help on a, b, etc.  This is intentional (although the documentation is 
unclearly worded), and has been the case since at least R 2.0.0.
Some versions of help will display only the first topic.

If help(letters, htmlhelp=FALSE) does something else on your system, that 
is a MacOS-specific bug since the topic selected should not depend on the 
optional arguments.

What is unclear from the documentation is what should happen with

help(c("help", "help.search"))

It seems that for text help you get the first, for htmlhelp both.

There are two things we could do to help (apart from clarifying the 
documentation):

1) If 'topic' is neither a name nor a character vector (e.g. an expression 
like the last example) give an explicit error.

2) if topic is a character vector of length > 1, use the name.
On Sun, 23 Sep 2007, John.Maindonald at anu.edu.au wrote:

            
But the documented and actual results are the same, and different in the 
two cases.