[Rd] Mismatches for methods registered for non-generic:

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Mon May 27 13:16:15 CEST 2024


В Mon, 27 May 2024 10:52:26 +0000
"Koenker, Roger W" <rkoenker using illinois.edu> пишет:

> that have been fine until now and on my fresh R version 4.4.0
> (2024-04-24) are still ok with R CMD check —as-cran

This extra check requires the environment variable
_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_ to be set to TRUE to show the
issues.

> but CRAN checking reveals, e.g.
> 
> Check: S3 generic/method consistency, Result: NOTE
>  Mismatches for methods registered for non-generic:
>  as:
>    function(object, Class, strict, ext)
>  as.matrix.coo:
>    function(x, nrow, ncol, eps, …)
> 
> which I interpret as regarding  my generics as just S3 methods for
> the non-generic “as”.

There are calls to S3method("as", ...) and S3method("is", ...) at the
end of the NAMESPACE for the current CRAN version of SparseM. If I
comment them out, the package passes R CMD check --as-cran without the
NOTE and seemingly with no extra problems.

-- 
Best regards,
Ivan



More information about the R-devel mailing list