[R-pkg-devel] S4 Methods and Ellipsis Formals

2021-11-17 Thread Dario Strbenac
Good day, I read in the documentation of SetMethod that "Roughly, if the generic has ... as one of its arguments, then the method may have extra formal arguments, which will be matched from the arguments matching ... in the call to f." I was hoping that ellipsis could be also part of a method

Re: [R-pkg-devel] S4 methods

2020-06-02 Thread Edgar Josymar Torrejón-Magallanes
Thank you so much for your help. I delete the exporClass and the warnings and error have disappeared. Regards El mar., 2 jun. 2020 a las 4:28, Gábor Csárdi () escribió: > You export these S4 classes from your package: > >

Re: [R-pkg-devel] S4 methods

2020-06-02 Thread Gábor Csárdi
You export these S4 classes from your package: https://github.com/cran/sizeMat/blob/c4d257a9108cde3ddb6e8eb2072cd567ae85b5c8/NAMESPACE#L13-L15 But these are not actually S4 classes, AFAICT. Remove the `@exportClass` tags here:

Re: [R-pkg-devel] S4 methods

2020-06-02 Thread Sebastian Meyer
This is a new check in R-devel. The NEWS say: > R CMD check etc now warn when a package exports non-existing S4 classes or > methods, also in case of no "methods" presence In your case, the NAMESPACE contains > exportClasses(classify) > exportClasses(gonad_mature) > exportClasses(morphMat)

[R-pkg-devel] S4 methods

2020-06-02 Thread Edgar Josymar Torrejón-Magallanes
Dear members I just finished some minor updates to an R package (sizeMat) I've had on CRAN (haven't had to update in a month). My package passes Check on my local machine, but it just bounced back from CRAN with the message Warning: S4 exports specified in 'NAMESPACE' but not defined in package