From h.wickham at gmail.com  Fri Jun 20 11:33:25 2014
From: h.wickham at gmail.com (Hadley Wickham)
Date: Fri, 20 Jun 2014 10:33:25 +0100
Subject: [Rd] R CMD check warning with S3 method
In-Reply-To: <1403198095.17749.166.camel@braque.iarc.fr>
References: <CAFOpNVGGT+tpdAZ42Q+jkWntAE+N=Ctq_D5pKbVVHx7F6_m0RQ@mail.gmail.com>
	<1403198095.17749.166.camel@braque.iarc.fr>
Message-ID: <CABdHhvF0-ddRHXB_o3cYqfHkRSUwW122gdWN4htvWfKFPBh9fA@mail.gmail.com>

> When you provide a method for a generic function imported from another
> package then the generic must be on the search path. Otherwise if a user
> types "filter" the dispatch to "filter.test" will never occur.

Right, and this is as desired. If dplyr is not explicitly loaded by
the user, filter.ggvis will never be called.

I don't understand why ggvis should be need to re-export filter from
dplyr - the intent is that filter will be useable with ggvis object,
but you'll only have the filter generic available if you've loaded
dplyr.

Hadley

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



[Rd] R CMD check warning with S3 method
Hadley Wickham