Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 methods in local environment are not identified #91

Open
mschubert opened this issue Dec 15, 2023 · 0 comments
Open

S3 methods in local environment are not identified #91

mschubert opened this issue Dec 15, 2023 · 0 comments
Labels

Comments

@mschubert
Copy link

Describe the bug

Originally mentioned in #2, identification of local S3 methods is mentioned to be fixed in 7847dd5 (2018).

#47 seems to be for S3 methods in packages specifically.

Related: mschubert/clustermq#256

Reproduce example

f = function(i) UseMethod('f')
f.numeric = function(i) sqrt(i)
globals::globalsOf({ f(1) }, locals=TRUE, recursive=TRUE) # addS3 is no longer documented
# list()

The originally included test also seems to fail now, although it is no longer available. I also no longer see any mention on S3 in the tests or any changes to S3 behavior in the NEWS.

Expected behavior

Shouldn't this identify f.numeric?

Session information

R version 4.3.2, globals_0.16.2

@mschubert mschubert added the bug label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant