Skip to content

Avoid use of NextMethod() in .DollarNames.R6()#299

Merged
wch merged 3 commits intomainfrom
fix-dollarnames-rstudio
Feb 14, 2025
Merged

Avoid use of NextMethod() in .DollarNames.R6()#299
wch merged 3 commits intomainfrom
fix-dollarnames-rstudio

Conversation

@wch
Copy link
Member

@wch wch commented Feb 14, 2025

Fixes #298.

In the RStudio IDE prior to this PR, it essentially called .DollarNames.R6 directly, and so the call to NextMethod() would throw an error.

This PR makes it so we avoid NextMethod() entirely.

Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to add a couple of tests?

@wch wch merged commit 4c9ddd4 into main Feb 14, 2025
1 check passed
@wch wch deleted the fix-dollarnames-rstudio branch February 14, 2025 21:12
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.

Error in NextMethod() : generic function not specified

2 participants