You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generic should dispatch in cbind.default, why didn't it happen? The output in s3_dispatch() is correct, as I would expect. But that didn't happen when I use the generic. See the code below.
Code:
cbind.default <- function(x, ...) "Test!"
x <- 1:10
sloop::s3_dispatch(cbind(structure(x, class = "numeric")))
cbind(structure(x, class = "numeric"))
Example (Output):
cbind.default <- function(x, ...) "Test!"
x <- 1:10
sloop::s3_dispatch(cbind(structure(x, class = "numeric")))
cbind.numeric
=> cbind.default
The generic should dispatch in cbind.default, why didn't it happen? The output in s3_dispatch() is correct, as I would expect. But that didn't happen when I use the generic. See the code below.
Code:
cbind.default <- function(x, ...) "Test!"
x <- 1:10
sloop::s3_dispatch(cbind(structure(x, class = "numeric")))
cbind(structure(x, class = "numeric"))
Example (Output):
The text was updated successfully, but these errors were encountered: