Re: [R-pkg-devel] More on explosive dependencies

2018-07-16 Thread David Hugh-Jones
Hi Russell, That's v helpful and I am going to try it myself. Can I just ask what goes in your namespace file (and what roxygen tags you use) for the relevant methods? David On Tue, 17 Jul 2018 at 02:29, Lenth, Russell V wrote: > Thanks to all who responded. I am pleased to say that with

Re: [R-pkg-devel] More on explosive dependencies

2018-07-16 Thread Lenth, Russell V
Thanks to all who responded. I am pleased to say that with your help, I have managed to work around this problem by dynamically registering the methods. My file zzz.R contains code to register various methods having generics in coda and multcomp. Those packages are in Suggests (not Imports) and

Re: [R-pkg-devel] Package builds, installs, and runs but does not pass devtools::check()

2018-07-16 Thread Zhian Kamvar
Using dplyr like that is for exploratory data analysis. You'll want to refer to dplyr's "Programming with dplyr" vignette for using dplyr in a package: https://cran.r-project.org/web/packages/dplyr/vignettes/programming.html

Re: [R-pkg-devel] Package builds, installs, and runs but does not pass devtools::check()

2018-07-16 Thread Fox, John
Dear Michael, You could add a call to globalVariables() in the package sources for cases like this. I hope this helps, John - John Fox Professor Emeritus McMaster University Hamilton, Ontario, Canada Web:

Re: [R-pkg-devel] Package builds, installs, and runs but does not pass devtools::check()

2018-07-16 Thread Michael Hannon
Thanks, Georgi. I've changed my approach and now do what I gather is recommended practice: put all external package names into the "Imports" section of the DESCRIPTION file and then use the fully-qualified names for functions from those packages, as: dplyr::select() The "check" operation is

Re: [R-pkg-devel] Reverse dependencies - again

2018-07-16 Thread Dirk Eddelbuettel
On 11 July 2018 at 10:00, J C Nash wrote: | 2) Is it time to consider an effort to provide online revdep checking | that would avoid pressure on CRAN team directly and would provide | clearer indicators of the issues raised by a particular package? That is very close to my R Foundation Summit

Re: [R-pkg-devel] More on explosive dependencies

2018-07-16 Thread Iñaki Úcar
El lun., 16 jul. 2018 a las 3:24, Lenth, Russell V () escribió: > > Package developers, > > I posted a question a couple of months ago dealing with how to reduce the > number of dependencies in a package. Part of the specific issue I face is > that I have a `cld` S3 method for which the generic

Re: [R-pkg-devel] More on explosive dependencies

2018-07-16 Thread David Hugh-Jones
Hi Russ, Possibly relevant: the modelgenerics package (on GitHub) does exactly what you're suggesting for standard model functions like `nobs` etc. I think at some point it is going to become part of the tidyverse. D On Mon, 16 Jul 2018 at 02:24, Lenth, Russell V wrote: > Package