Closed etiennebacher closed 2 years ago
Do you think a warning should be made when the dataset used is a tibble instead of a dataframe?
Nope. Honestly poorman shouldn't need to know about the existence of tibble
s since it is designed to work with data.frame
s. It's the same as it shouldn't need to know about the existence of data.table
s. If it did, we would need to write S3 methods for each of data.frame
s, tibble
s and data.table
s. So it is "out of scope" :) that's not to say that in the future we could do what I describe but it'd be a lot of work (I actually abandoned work on data.table
methods a long time ago).
This fixes the NSE problem mentioned in #98 and #101. Using quoted and unquoted names for
names_from
andvalues_from
inpivot_wider()
now give the same output.Created on 2022-08-02 by the reprex package (v2.0.1)
In #101, you said that
poorman
is not designed to work with tibbles, and I understand that. However, when I made the examples for this PR, it took me a few minutes to realize thatpivot_wider()
didn't work at all with tibbles. I guess I'm not the only one who was surprised by this. Do you think a warning should be made when the dataset used is a tibble instead of a dataframe?