Skip to content
Prev 16519 / 63424 Next

Suggestion: help(<package name>)

Kurt Hornik wrote:
It seemed to me that most of the discussion focussed on one point 
(forcing extra work on people); this seems to be the only way to get 
discussion on any other aspect of the proposal.

 > My understanding was that
The reason I went ahead was that I think this implementation is an 
improvement on INDEX files, though it is backwards compatible.  In 
several of the overviews I wrote I refer to the automatically generated 
INDEX file.  In cases where the INDEX was manually edited I recommend 
putting the content into the overview topic instead (but do not force 
this). I did it for the boot package (and I'll send the work to Brian if 
he's interested in incorporating it, since boot isn't a base package, 
and he's the maintainer); it wasn't that hard, but I think it was an 
improvement, in that the function names can be links to the function man 
pages, not just names to be copied and pasted.

In at least one case (the stats4 package) I think the INDEX file is 
almost completely useless, so I wrote the overview completely from 
scratch.  I'm not sure I got it right, comments or corrections to the 
content would of course be welcome too.

However, I'd really like to hear a clear explanation of why you think 
the current system is superior.  So far all that I've heard are messages 
like "this forces too much work on package writers", "we did this three 
years ago, why do it again?"  I've explained why I think this solution 
is better, and I've modified it to allow it to be anywhere from "zero 
cost" (ignore it) to "very low cost" (use the automatically generated 
overview), on up as far as a package writer wants to take it.
The problem with that style is that it doesn't parse to a name, so it 
needs quotes to work with the help system.  For example,

  ?boot-PACKAGE

doesn't do what you'd guess at all.  (It gives help on "-").  Remember, 
my main aim is to simplify the answer to the question "how do I get help 
on foo?"  So far nobody has written out a complete answer to that 
question; I invite you to try to do so.

I'd have to see how it works with all the tools, but in principle I'd 
have no objection to putting "-" in the name, as long as there was 
guaranteed to be a simple pattern to generate an alias that wouldn't 
need quoting.

Would you object to that?  Why?

Unfortunately our help system doesn't handle duplicate aliases, so I 
can't always use the package name as an alias (which is what I'd really 
like to do).  However, changes to allow duplicate aliases would be quite 
hard, and it's not something I'd like to take on.

Duncan Murdoch

Thread (35 messages)

Henrik Bengtsson Suggestion: help(<package name>) Jun 7 Kurt Hornik Suggestion: help(<package name>) Jun 7 Wolfgang Huber Suggestion: help(<package name>) Jun 7 Henrik Bengtsson Suggestion: help(<package name>) Jun 7 Henrik Bengtsson Suggestion: help(<package name>) Jun 7 Duncan Murdoch Suggestion: help(<package name>) Jun 7 Gabor Grothendieck Suggestion: help(<package name>) Jun 7 robin hankin Suggestion: help(<package name>) Jun 7 Thomas Lumley Suggestion: help(<package name>) Jun 7 Robert Gentleman Suggestion: help(<package name>) Jun 7 Duncan Murdoch Suggestion: help(<package name>) Jun 7 Gabor Grothendieck Suggestion: help(<package name>) Jun 7 Robert Gentleman Suggestion: help(<package name>) Jun 7 Duncan Murdoch Suggestion: help(<package name>) Jun 7 Martin Maechler Suggestion: help(<package name>) Jun 7 Robert Gentleman Suggestion: help(<package name>) Jun 7 Achim Zeileis Suggestion: help(<package name>) Jun 7 Gabor Grothendieck Suggestion: help(<package name>) Jun 7 Brian Ripley Suggestion: help(<package name>) Jun 7 Duncan Murdoch Suggestion: help(<package name>) Jun 7 Torsten Hothorn Suggestion: help(<package name>) Jun 8 A.J. Rossini Suggestion: help(<package name>) Jun 8 robin hankin Suggestion: help(<package name>) Jun 8 Kurt Hornik Suggestion: help(<package name>) Jun 8 Henrik Bengtsson Suggestion: help(<package name>) Jun 8 Duncan Murdoch Suggestion: help(<package name>) Jun 8 Duncan Murdoch Suggestion: help(<package name>) Jun 8 Torsten Hothorn Suggestion: help(<package name>) Jun 8 Duncan Murdoch Suggestion: help(<package name>) Jun 8 Duncan Murdoch Suggestion: help(<package name>) Jun 9 Kurt Hornik Suggestion: help(<package name>) Jun 9 Duncan Murdoch Suggestion: help(<package name>) Jun 10 Gabor Grothendieck Suggestion: help(<package name>) Jun 10 Duncan Murdoch Suggestion: help(<package name>) Jun 10 Duncan Murdoch Suggestion: help(<package name>) Jun 10