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

From: peter dalgaard <>
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:  Priv:

______________________________________________ mailing list
PLEASE do read the posting guide
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 Please read the posting guide before posting to the list.

list of date sections of archive