Re: [R-pkg-devel] Conditionally register method with generic in other package

2017-12-06 Thread Duncan Murdoch
On 06/12/2017 8:44 AM, Bill Denney wrote: On Dec 6, 2017, at 07:45, Joshua Ulrich wrote: To avoid excessive dependencies, I would like to only register foo.bar() if package A is installed at the time package B is installed. If package A is installed after package B, then warn the user when p

Re: [R-pkg-devel] Conditionally register method with generic in other package

2017-12-06 Thread Bill Denney
> On Dec 6, 2017, at 07:45, Joshua Ulrich wrote: > > To avoid excessive dependencies, I would like to only register > foo.bar() if package A is installed at the time package B is > installed. If package A is installed after package B, then warn the > user when package B is loaded and/or attache

[R-pkg-devel] Conditionally register method with generic in other package

2017-12-06 Thread Joshua Ulrich
I have a feeling I know the answer to this question, but I'm asking with the hope that I learn something new. Package A defines a S3 generic function, "foo()". Package B defines a S3 class "bar", and a foo.bar() method. This method is not strictly necessary for the package to function, and packa

Re: [R-pkg-devel] Error in re-building vignettes (SOLVED)

2017-12-06 Thread Dirk Eddelbuettel
On 6 December 2017 at 11:40, Göran Broström wrote: | Hi again, | | today I INSTALLED R-devel (2017-12-05 r73849) and updated all packages | | > update.packages(checkBuilt = TRUE) | | and rebuilt eha_2.5.1 and now all checks passed! Maybe the update of | packages was necessary. Very much so,

Re: [R-pkg-devel] (no subject)

2017-12-06 Thread Jose Manuel Vera
That's the issue. My examples are inside a \dontrun{} block 2017-12-05 18:47 GMT+01:00 Iñaki Úcar : > 2017-12-05 18:38 GMT+01:00 Uwe Ligges : > > > > > > On 05.12.2017 18:35, Iñaki Úcar wrote: > >> > >> 2017-12-05 10:04 GMT+01:00 Jose Manuel Vera >: > >>> > >>> Hi all > >>> > >>> Submitted

Re: [R-pkg-devel] Error in re-building vignettes (SOLVED)

2017-12-06 Thread Göran Broström
Hi again, today I INSTALLED R-devel (2017-12-05 r73849) and updated all packages > update.packages(checkBuilt = TRUE) and rebuilt eha_2.5.1 and now all checks passed! Maybe the update of packages was necessary. On its way to CRAN now. Göran On 2017-12-05 21:51, Göran Broström wrote: Hi,