From h.wickham at gmail.com  Thu May  1 00:33:04 2014
From: h.wickham at gmail.com (Hadley Wickham)
Date: Wed, 30 Apr 2014 17:33:04 -0500
Subject: [Rd] "Name partially matched in data frame"
In-Reply-To: <53614FC0.30408@gmail.com>
References: <3781BDEC-E7D2-482A-A7A7-63B61B021754@plessthan.com>
	<53614FC0.30408@gmail.com>
Message-ID: <CABdHhvHNdy-XJWFWWr6YWN9smEZpJvq3nwcPH=qC5cSnWvN0Hg@mail.gmail.com>

>> I realize that the new message is only a warning but it is a minor
>> nuisance.  Would it be possible to add an
>>         option(partialMatch=TRUE)       ## default is FALSE
>> or something similar to suppress that behavior?  That should keep both
>> camps happy.
>
>
> I'd be much happier with a general mechanism to suppress particular
> warnings.  Then you could choose to suppress this one.
>
> We might be able to do that with options("warning.expression"), but I don't
> see how...

One approach would be to take advantage of the fact that warnings
conditions are S3 objects and can have a class hierarchy.

Hadley

-- 
http://had.co.nz/



[Rd] "Name partially matched in data frame"
Hadley Wickham