After some trial and error, this is what I came up with. This solution ensures that all objects are exported properly, that the R CMD build / check does not shine, that there is no redundant documentation and that the examples will be executed. Note that the solution will not work if @export is replaced with @ method / @ S3method. Theoretically, this should work, but it is not for me. Does anyone have a better solution?
NULL
setMethodS3( "MyMethod" , "ClassName" , appendVarArgs = FALSE ,
function( this , someParam ) { ... } )
source
share