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 following empty tidyselect::all_of() would have given an empty data frame in dplyr::select() but here gives a rather uninformative error. Perhaps a "Selection is empty.".
Brief description of the problem
expect_variables<- c()
tidyr::unite(mtcars, col="merged", tidyselect::all_of(expect_variables))
#> Error in `df_append()`:#> ! `after` must be a whole number, not an integer `NA`.#> ℹ This is an internal error that was detected in the tidyr package.#> Please report it at <https://github.com/tidyverse/tidyr/issues> with a reprex#> (<https://tidyverse.org/help/>) and the full backtrace.---Backtrace:
▆
1. ├─mtcars %>% ...2. ├─tidyr::unite(...)
3. └─tidyr:::unite.data.frame(...)
4. └─tidyr:::df_append(after=after)
5. └─tidyr:::check_number_whole(after, min=0L, max=n, .internal=TRUE)
6. └─tidyr:::.rlang_types_check_number(...)
7. └─tidyr (local) .stop(x, what, ...)
8. └─tidyr:::stop_input_type(...)
9. └─rlang::abort(message, ..., call=call, arg=arg)
Return a column named using col with each cell filled with "", i.e. the "initial" reduction value that would theoretically be built upon if you would have actually selected columns. It would be positioned at the end of the data frame.
The following empty
tidyselect::all_of()
would have given an empty data frame indplyr::select()
but here gives a rather uninformative error. Perhaps a "Selection is empty.".Brief description of the problem
Created on 2024-04-15 with reprex v2.1.0
Session info
The text was updated successfully, but these errors were encountered: