Skip to content

Transitioning S3 generics to S7 generics #543

@teunbrand

Description

@teunbrand

Hi there,

A problem I'm encountering is when I have a pkgA::foo() generic that I want to transition from S3 to S7.
All works fine within pkgA, that I can transition as a whole.
The issue arises when a second package has an pkgB::foo.their_class() S3 method for the pkgA::foo() generic.
It appears that we cannot register S3 methods for S7 generics, so the relationship between the generic and the external method becomes dysfunctional.
In an ideal world we would have pkgB transition from an S3 method to S7 method, but this isn't currently realistic for my case.

At the risk of advice seeking, I'll ask: are there ways to transition gracefully?
If there are, please consider this a request for clarification in the documentation.
If not, is this something that you may consider?

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