Open brshallo opened 3 years ago
Thanks for spotting this. I was able to track down the issue to this line:
data <- dplyr::cur_data()[1, ]
This is the data used in across2x_setup
. The problem is here that we are in a rowwise
data.fame
and with cur_data()
we get each list element as column content, but not the list itself. That's the reason why where(is.list)
doesn't work here. The same holds true for across2
and crossover
.
This all is rooted in the problem that we cannot access the whole actual data from outside of {dplyr}. Within {dplyr} we could use dplyr:::cur_data_all()
. For the next version of {dplyover} I'm working on a fix.
I was trying to recreate this example I made with
pwiser
https://gist.github.com/brshallo/01496b68adef88a71de1fd44f3712b10 usingdplyover
but ran into this error:Wasn't sure what the issue was... If i do the same thing though passing in a list of dataframes though it works... eg