Skip to content

S7::method does not accept an S3 generic while the doc suggest it should. #568

@lgautier

Description

@lgautier

In R, with S7 v0.2.0:

> isS3stdGeneric(print)
print 
 TRUE 
> S7::method(print)
Error: `generic` must be a <S7_generic>, not a <closure>

The doc says:

Usage:

     method(generic, class = NULL, object = NULL)
     
Arguments:

 generic: A generic function, i.e. an S7 generic, an external generic,
          an S3 generic, or an S4 generic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions