Closed mattsams89 closed 2 years ago
Reprex:
pacman::p_load(tidytable)
x <- c(1, 2, 3)
y <- list(1, 2)
x %in% y
#> Error:
#> ! Can't combine <double> and <list>.
#> Backtrace:
#> ▆
#> 1. └─x %in% y
#> 2. └─vctrs::vec_in(x, y)
#> 3. └─vctrs (local) `<fn>`()
#> 4. └─vctrs::vec_default_ptype2(...)
#> 5. └─vctrs::stop_incompatible_type(...)
#> 6. └─vctrs:::stop_incompatible(...)
#> 7. └─vctrs:::stop_vctrs(...)
#> 8. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call))
I think it should be fixed now. Would you mind checking and letting me know if it worked?
Yup, that seems to have fixed it!
Awesome 👍
@mattsams89 - if you happen to have any thoughts on #572 feedback is much appreciated (whether for or against 😄)
So this is a bit of a weird one that popped up after the update to 0.8.1. I assume it has to do with
base::%in%
being masked when {tidytable} is loaded. If I load {tidytable} in my .Rprofile, RStudio's code completion errors out with the following:This doesn't happen if I load {tidytable} from the console once RStudio has started. I've tested this with both
library(tidytable)
andpacman::p_load(tidytable)
with the same result.For reference, my .Rprofile is pretty vanilla:
ETA the
sessionInfo()
for posterity's sake: