Re: [Rd] Help page on '$': 'warnPartialMatchAttr' should be 'warnPartialMatchDollar'

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Mon, 19 Nov 2012 18:52:13 +0100

Thank you, Suharto,

you are right, there (on ?Extract ) has been a typo.

I've fixed it and also added an example at the very end of that help page.

Martin Maechler, ETH Zurich

>>>>> Suharto Anggono <suharto_anggono_at_yahoo.com> >>>>> on Thu, 15 Nov 2012 23:48:12 -0800 writes:

> http://stackoverflow.com/questions/6065724/assigning-value-to-a-variable-that-has-a-dot-in-the-name
> made me realize this. The context is 'a' is assigned to
> ret$log.id, but then ret$log returns "a" and ret$l also
> returns "a". There is a comment from Charles on the
> question: "Also see options(warnPartialMatchDollar=T) if
> you want to track these."

> But, in bottom part, there is Chase's answer, quoting help
> page for $.

> ... under Character indices: Thus the default behaviour is
> to use partial matching only when extracting from
> recursive objects (except environments) by $. Even in that
> case, warnings can be switched on by
> options(warnPartialMatchAttr = TRUE).

> This is what I get from R documentation of 'options'.

> ‘warnPartialMatchAttr’: logical. If true, warns if
> partial matching is used in extracting attributes via
> ‘attr’.

> ‘warnPartialMatchDollar’: logical. If true, warns if
> partial matching is used for extraction by ‘$’.

> So, in the part of help page on '$' quoted in part of
> Chase's answer above, options(warnPartialMatchAttr = TRUE)
> should be options(warnPartialMatchDollar = TRUE)

> This is in R 2.15.2.

> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 19 Nov 2012 - 17:54:58 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Mon 19 Nov 2012 - 21:30:54 GMT.

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

list of date sections of archive