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
When I call reframe with across and the length of the output is not consistent, the error message is a lot less helpful if the output of across is not named:
library(tidyverse)
tibble(x=1:3, y=4:6) |>
reframe(test= across(everything(), \(x){
rep(letters[x], each=x)
}))
#> Error in `reframe()`:#> ℹ In argument: `test = across(...)`.#> Caused by error in `across()`:#> ! Can't recycle `..1` (size 3) to match `..2` (size 12).
tibble(x=1:3, y=4:6) |>
reframe(across(everything(), \(x){
rep(letters[x], each=x)
}))
#> Error in names(dots)[[i]]: subscript out of bounds
When I call
reframe
withacross
and the length of the output is not consistent, the error message is a lot less helpful if the output ofacross
is not named:Created on 2025-02-12 with reprex v2.1.1
The situation is slightly better with
mutate
:Created on 2025-02-12 with reprex v2.1.1
Session info
The text was updated successfully, but these errors were encountered: