Re: [R-pkg-devel] Redefinition of generic for plot function breaks plot.formula

2015-08-31 Thread Gavin Simpson
Why do you even need to take over `plot`, `plot.default`? You can just register/export the plot.data.frame method from our package without touching the generic or default method. The part of WRE that you refer to is about making functions that are *not* S3 methods in one of base R or it's packages

Re: [R-pkg-devel] Define S4 method for generic in other package

2015-08-31 Thread Hadley Wickham
I'd recommend creating a minimal package that illustrates the problem using an existing S4 generic in a base package (e.g. stats4::AIC). That makes it easier to figure out what's gone wrong. It's unlikely to be a roxygen2 problem since the translation from @importFrom foo bar (etc) to importFrom(f

[R-pkg-devel] Redefinition of generic for plot function breaks plot.formula

2015-08-31 Thread Benjamin Hofner
Dear all, CRAN policies do not allow that single methods (for generic functions) which are defined in base or recommended packages are replaced. They advice package authors to replace the standard generic and use a xxx.default method which then calls the original standard generic. Using the