Richard Cotton
2016-Nov-03 08:07 UTC
[Rd] .S4methods inconsistent behavior with methods, .S3methods
If I call .S4methods(sd) I get the error ## Error in getGeneric(generic.function) : ## argument 'f' must be a string, generic function, or primitive: got an ordinary function By contrast, methods and .S3methods just state that no methods are found. methods(sd) ## no methods found S3methods(sd) ## no methods found It seems like the behavior of these functions ought to be consistent. Maybe they should split the difference and say no methods are found, but warn the the input is not generic? -- Regards, Richie Learning R 4dpiecharts.com
Apparently Analagous Threads
- \U with more than 4 digits returns the wrong character
- Unicode display problem with data frames under Windows
- capturing warnings using capture.output
- using with inside loop breaks next
- Too many spaces in deparsed complex numbers with digits17 control option