Re: [Rd] RFC: What should ?foo do?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 25 Apr 2008 19:47:37 +0100 (BST)

On Fri, 25 Apr 2008, Deepayan Sarkar wrote:

> For what it's worth, I use ?foo mostly to look up usage of functions
> that I know I want to use, and find it perfect for that (one benefit
> over help() is that completion works for ?). The only thing I miss is
> the ability to do the equivalent of help("foo", package = "bar");
> ?bar::foo gives the help page for "::". Perhaps that would be
> something to consider for addition.

That fits most naturally with the (somewhat technical) idea that bar::foo becomes a symbol and not a function call. I believe that several of think that is in principle a better idea, but no one has as yet (AFAIK) explored the ramifications.

However, 5 mins looking at the sources suggests that it is easy to do.

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 25 Apr 2008 - 18:54:46 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 Apr 2008 - 10:31:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive