-
Notifications
You must be signed in to change notification settings - Fork 32
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
R session aborts when a generics fun
overwrites a supplied argument
#254
Labels
bug
an unexpected problem or unintended behavior
Comments
What do you mean by crashes? |
KaiAragaki
changed the title
RStudio crashes when a generics
R session aborts when a generics Oct 13, 2022
fun
overwrites a supplied argumentfun
overwrites a supplied argument
Updated reprex: library(S7)
my_generic <- new_generic("my_generic", "x", function(x) {
x <- x
S7_dispatch()
})
method(my_generic, class_character) <- function(x) {
x
}
my_generic("x") I also see the crash |
Error is coming from https://github.com/RConsortium/OOP-WG/blob/abstract-parent-readonly-property/src/method-dispatch.c#L133, presumably because this isn't an unevaluated promise. |
hadley
added a commit
that referenced
this issue
Apr 14, 2023
To allow dispatch on evaluated arguments. Fixed #254
hadley
added a commit
that referenced
this issue
Apr 18, 2023
To allow dispatch on evaluated arguments. Fixed #254
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apologies if this should be directed to the RStudio repo.
Reprex:
This is fine though:
RStudio version: 2022.07.2+576 (2022.07.2+576)
OS: macOS 12.6
The text was updated successfully, but these errors were encountered: