Port of the R CMD check checks checking S3 generic/method consistency (tools::checkS3methods) and
checking replacement functions (tools::checkReplaceFuns).
A method must take all the arguments of its generic in the same order (and ... if the generic does); a replacement
function must end in value. The methods are the S3method() registrations of the NAMESPACE (certain) and the
functions named generic.class for a generic (uncertain, R CMD check merely lists these on request). The generics are
the package's own functions calling UseMethod, the group generics, and the functions flowR knows as generic
with their formals; a function flowR knows as an ordinary function (t.test) is no method of t.
Additionally, apparent methods that are exported but not registered are reported.
Readonlyinfo: { certainty:BestEffort; defaultConfig:()=>{ checkApparentMethods:true; checkMethods:true; checkReplacementValues:true; checkUnregistered:true; }; description:"Finds S3 methods whose formals do not match their generic, methods not registered in the NAMESPACE, and replacement functions whose last formal is not `value`."; name:"S3 Method Consistency"; tags:readonly[CmdCheck,Bug,Robustness]; }
Port of the
R CMD checkcheckschecking S3 generic/method consistency(tools::checkS3methods) andchecking replacement functions(tools::checkReplaceFuns). A method must take all the arguments of its generic in the same order (and...if the generic does); a replacement function must end invalue. The methods are theS3method()registrations of theNAMESPACE(certain) and the functions namedgeneric.classfor a generic (uncertain,R CMD checkmerely lists these on request). The generics are the package's own functions callingUseMethod, the group generics, and the functions flowR knows as generic with their formals; a function flowR knows as an ordinary function (t.test) is no method oft. Additionally, apparent methods that are exported but not registered are reported.