Conversation
|
I found my way to this PR when I discovered that adding a method for From my tests, this PR does not fix this issue for Logical := new_class(class_logical)
method(`!`, list(Logical, class_missing)) <- function(e1, e2) {
Logical(!as.logical(e1))
}
## Error: `generic` is a function, but not an S3 generic function:
## .Primitive("!")I think the problem is that As a hackish solution, if I add Lines 107 to 121 in f75e089 the test on |
|
Thanks for the report and workaround! This PR will likely be finished / rolled-into #365. One workaround you can use until this is fixed is to define an S3 method the S3 way. #' @export
`!.mypackage::Logical` <- function(x) { .... }That workaround should work now, and continue to work once this is fixed in S7. |
|
Great thanks! That helps, because I was defining |
No description provided.