I agree that this is not an R issue, but rather user error of not defining a
proper generic so the check is right. Obviously, defining a generic with
implementation-specific ncol default makes no sense at all, it should only be
part of the method implementation. If one was to implement the same
On Sat, Jun 3, 2023 at 11:51 AM Mikael Jagan wrote:
> The formals of the newly generic 'qr.X' are inherited from the non-generic
> function in the base namespace. Notably, the inherited default value of
> formal argument 'ncol' relies on lazy evaluation:
>
> > formals(qr.X)[["ncol"]]
>
On Sat, 3 Jun 2023 11:50:59 -0400
Mikael Jagan wrote:
> > setOldClass("qr")
> > setMethod("qr.X", signature(qr = "qr"), function(qr, complete,
> > ncol) NULL)
>
> The formals of the newly generic 'qr.X' are inherited from the
> non-generic function in the base namespace. Notabl