kbodwin / demoR

(this package has been replaced by "flair")
https://kbodwin.github.io/flair/index.html
Other
47 stars 7 forks source link

hit_regexp generic/method consistency #19

Open dragosmg opened 5 years ago

dragosmg commented 5 years ago

checking S3 generic/method consistency ... WARNING hlt_regexp: function(.string, pattern, code, ...) hlt_regexp.demo_code: function(x, ...)

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.