Skip to content

Using methods::setOldClass inside a module. #302

Answered by klmr
TransGirlCodes asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately the issue here is that ‘box‘ does not — and probably cannot! — support S4. While this is technically a bug in ‘box’, it’s really a limitation in R’s S4 system, and therefore (probably) not something I can fix on my side. See #284 for a discussion of that.

I’ve never used ‘vctrs’ but as far as I know it is based on S3, not S4. So would it maybe work to simply remove the setOldClass call? After all, the only purpose of that function is to make an S3 class usable with S4 methods.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TransGirlCodes
Comment options

Answer selected by TransGirlCodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants