See section ‘Generic functions and methods’ in the ‘Writing R
Extensions’ manual.
The recommendation in the manual is for a method to have all the arguments of the generic. In this case, the method (.demo_code) takes different arguments than its generic.
The recommendation in the manual is for a method to have all the arguments of the generic. In this case, the method (
.demo_code
) takes different arguments than its generic.