Open
Description
The function pivot_wider() produces an error:
Error in `rethrow_id_cols_oob()`:
! `i` must be a single string, not an integer vector.
ℹ 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 and the full backtrace.
---
Backtrace:
1. iris %>% ...
27. rlang (local) `<fn>`(`<vctrs___>`)
28. handlers[[1L]](cnd)
29. tidyr:::rethrow_id_cols_oob(...)
library(tidyverse)
library(dplyr)
pivot <- iris %>%
pivot_wider(id_cols = 3:5, names_from = Species, values_from = Petal.Width)