Re: [R] 'autocompletion' of named elements of a list

From: peter dalgaard <pdalgd_at_gmail.com>
Date: Fri, 11 Mar 2011 11:25:28 +0100

On Mar 11, 2011, at 09:55 , Håvard Rue wrote:

....
>
> since NULL elements are removed from the list, and that A$a auto-expand
> to A$aa, my error appeared.
>
> To me, this seems not a feature I want in order to have a robust
> program.
>

Partial matching of arguments and list item names is a feature long regretted by its inventors, but too late to remove. Too many people doing chisq.test(...)$exp etc.

> Is there any option to turn this ''feature'' off?

No. It's not the sort of thing you want to control with an option. It's a nightmare when you think of package development. For one thing, your code would break if someone turned the option back on.

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes_at_cbs.dk  Priv: PDalgd_at_gmail.com

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 11 Mar 2011 - 10:35:35 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 Fri 11 Mar 2011 - 10:40:21 GMT.

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

list of date sections of archive