Dear UseRs, I declared a `$` method for a S4 class. Can I have ab automatic completion for this operator in R? Lists and environment objects provide this feature by default, but my object is an extension of "function" class which does not have subseting defined. How to be? Thanks for any input. Vitalie. --
On Tue, Aug 4, 2009 at 11:37 AM, Vitalie S.<vitosmail at rambler.ru> wrote:> Dear UseRs, > > I declared a `$` method for a S4 class. Can I have ab automatic completion > for this operator in R? Lists and environment objects provide this feature > by default, but my object is an extension of "function" class which does not > have subseting defined. How to be?Completion should be automatic if you define names() to return the valid names. -Deepayan
> > Completion should be automatic if you define names() to return the valid > names.Thank you Deepayan, that works beautifully. I wonder though; names function for environment objects always returns NULL, but completion still works. Looks tricky. Vitalie. --