Skip to content

Conversation

@salim-b
Copy link

@salim-b salim-b commented Jun 18, 2025

Param name of methods::setMethod() is actually definition, while for methods::setAs() and methods::setGeneric() it's def. Stupid API inconsistency (as often is the case in R).

Set options(warnPartialMatchArgs = TRUE) to trigger the warning that this change fixes.

salim-b added 2 commits June 18, 2025 19:31
Param name of [`methods::setMethod()`](https://rdrr.io/r/methods/setMethod.html) is actually `definition`, while for `methods::setAs()` and `methods::setGeneric()` it's `def`. Stupid API inconsistency (as often is the case in R).

Set `options(warnPartialMatchArgs = TRUE)` to trigger the warning that this change fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant