Re: [Rd] methods(class = class()) - improve for |cl.| > 1 ?

2018-10-19 Thread Gabe Becker
Martin and Kevin, Perhaps a variant of methods which more directly addresses the use-case Kevin mentions might be in order? I am happy to prepare a patch which implements a methodsForObj function (name very much negotiable), or a third obj argument to methods which takes the actual object and

Re: [Rd] methods(class = class()) - improve for |cl.| > 1 ?

2018-10-19 Thread Kevin Ushey
I think this would be a good change. I think most users use the 'methods(class = <...>)' function to answer the question, "what methods can I call on objects with these classes?", and in that context I think it would be sensible for the function to accept more than one class. Kevin On Wed, Oct

[Rd] methods(class = class()) - improve for |cl.| > 1 ?

2018-10-17 Thread Martin Maechler
With new "strict" settings in R-devel, the following glm() example > data(anorexia, package = "MASS") > fm <- glm(Postwt ~ Prewt + Treat + offset(Prewt), family = gaussian, data = > anorexia) > methods(class = class(fm)) Warning in grep(name, row.names(info)) : argument 'pattern' has length >