[R] interactively getting alist of functions for a given package?
murdoch@dunc@n @end|ng |rom gm@||@com
Wed Jun 23 21:19:26 CEST 2021
On 23/06/2021 2:51 p.m., Jeff Newmiller wrote:
> RStudio seems to have done this. If you have it, try typing
> and the popup will suggest (among other options) geom_line.
Yes, though it may not be quite right. Back in May when I typed
their autocompletion gave me
(See https://github.com/rstudio/rstudio/issues/9293). Today that's not
happening, so maybe it's been fixed, or is only intermittent.
> On June 23, 2021 10:10:07 AM PDT, Duncan Murdoch <murdoch.duncan using gmail.com> wrote:
>> On 23/06/2021 8:37 a.m., Greg Minshall wrote:
>>> at the R prompt, i often hit, e.g., "data.table::<TAB>", to try to
>>> a routine in a give package.
>>> however, some packages have a *lot* of functions (i'm looking at
>>> ggplot2...), so if i know the routine name starts with, e.g., "set",
>>> can filter the returned list of routines by typing
>>> "data.table::set<TAB>" to get a list of completions.
>>> but, what if i know the name *contains*, but doesn't start with,
>>> is there an obvious way to find this? something like the unix-y
>>> : ls /bin | grep -i "set"
>> Bert gave you an answer that depends on ls(). Whether there's
>> like "set<TAB>" that can return "asset" probably depends on your front
>> end, and may be customizable using the facilities described in
>> Duncan Murdoch
>> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help