Package developers,
I am trying to severely cut down on the number of dependencies of my package
emmeans. It is now 48, which is quite a few (but that is down from over 100 in
the preceding version, where I made the unwise choice of including a
particularly greedy package in Imports). I hate to
On 24/05/2018 4:11 PM, Steven Spiriti wrote:
To Whom It May Concern:
I have created a package called "freeknotsplines" in R, and I need to
make a few updates to it. I resubmitted the package, and received the
following error message:
checking examples ... ERROR
Running examples in ‘freekn
Well, the computer is very good at doing what we ask it to, not what we intend
to.
In your case coef.freekt() clearly expects an S4 object (clue: object@) and
apparently that's what you feed it with.
A simple way to see where the problem actually comes from is
> options(error=recover)
> coef(xy
To Whom It May Concern:
I have created a package called "freeknotsplines" in R, and I need to
make a few updates to it. I resubmitted the package, and received the
following error message:
checking examples ... ERROR
Running examples in ‘freeknotsplines-Ex.R’ failed
The error most likely occ
Hi Joris,
At least some aspects of this topic are of interest on this list, given its
complexity.
I think that your example:
setGeneric("predict")
setMethod("predict", "ANY", stats::predict)
creates a new function 'predict' in your namespace, it doesn't make
stats::predict S4 generic. This is
My understanding is that the S3 methods guard against situations where only S3
dispatch is done,
e.g. by some internal generics. It may well be that for 'predict' this is not
theoretical possibility.
I second your suggestion about predict and stats4. I have wondered in the past
why 'predict' h
Dear Joris,
in my eyes, this is clearly a Q that should be asked on R-devel,
not R-package-devel ...
> Joris Meys
> on Thu, 24 May 2018 14:17:07 +0200 writes:
> Dear all, per the manual, one should create and register
> both the S3 and a S4 method if one needs a method for a
Dear all,
per the manual, one should create and register both the S3 and a S4 method
if one needs a method for an S4 class for a function using S3 dispatching.
This is cumbersome, and not very optimal.
I was wondering if there's a better way to do this. Currently I recreate a
generic in my packag