Hello,
Being relatively new to R, I often find myself searching for functions
using help.search("term"). Why not have the command ??term invoke it in
the same way as ?topic invokes index.search("topic")? Using a double
question mark to invoke a wider search for a term seems relatively
intuitive to me, and presumably would be trivial to implement.
Cheers
Yan Wong
Leeds University
Simple suggestion for improvement
5 messages · Duncan Murdoch, Adaikalavan Ramasamy, Yan Wong
On Thu, 3 Mar 2005 09:54:26 +0000, Yan Wong <h.y.wong at leeds.ac.uk> wrote :
Hello,
Being relatively new to R, I often find myself searching for functions
using help.search("term"). Why not have the command ??term invoke it in
the same way as ?topic invokes index.search("topic")? Using a double
question mark to invoke a wider search for a term seems relatively
intuitive to me, and presumably would be trivial to implement.
That's not a bad suggestion, but it might not be trivial to implement. Right now the "?" is an operator that is parsed like other operators such as "+": it becomes a function call . To have "??" mean something special would mean changes to the parser, or a special case to the .helpForCall function that the "?" function calls. Duncan Murdoch
On 3 Mar 2005, at 10:08, Duncan Murdoch wrote:
That's not a bad suggestion, but it might not be trivial to implement. Right now the "?" is an operator that is parsed like other operators such as "+": it becomes a function call . To have "??" mean something special would mean changes to the parser, or a special case to the .helpForCall function that the "?" function calls.
OK, I can see that. Adding another operator might be seen as too great a change to consider "trivial". But the second way (changing the function) seems a little "hacky" to me. Anyway, it is just a suggestion that would save me (and others) some typing time. Thanks for replying to my original post, Yan
How will you deal with multiple word searches such as
help.search("eps dev")
One way to implement would be ??"eps dev" but this looks awkward to me.
Regards, Adai
On Thu, 2005-03-03 at 10:21 +0000, Yan Wong wrote:
On 3 Mar 2005, at 10:08, Duncan Murdoch wrote:
That's not a bad suggestion, but it might not be trivial to implement. Right now the "?" is an operator that is parsed like other operators such as "+": it becomes a function call . To have "??" mean something special would mean changes to the parser, or a special case to the .helpForCall function that the "?" function calls.
OK, I can see that. Adding another operator might be seen as too great a change to consider "trivial". But the second way (changing the function) seems a little "hacky" to me. Anyway, it is just a suggestion that would save me (and others) some typing time. Thanks for replying to my original post, Yan
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On 3 Mar 2005, at 17:17, Adaikalavan Ramasamy wrote:
How will you deal with multiple word searches such as
help.search("eps dev")
One way to implement would be ??"eps dev" but this looks awkward to me.
That's what you have to do with the normal help function sometimes anyway, e.g. ?"+" ?"base-defunct" etc.