Re: [R-pkg-devel] Errors in my package

2018-05-25 Thread Joris Meys
On Thu, May 24, 2018 at 10:11 PM, Steven Spiriti wrote: > > > x <- 0:30/30 > > truey <- x*sin(10*x) > > set.seed(10556) > > y <- truey + rnorm(31, 0, 0.2) > > xy.freekt <- freelsgen(x, y, degree = 2, numknot = 2, 555) > > coef(xy.freekt) > Error: $ operator not defined for this S4 class > Executi

Re: [R-pkg-devel] Errors in my package

2018-05-24 Thread Duncan Murdoch
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

Re: [R-pkg-devel] Errors in my package

2018-05-24 Thread Georgi Boshnakov
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