Names attribute in cols for pivot_longer results in "Can't rename variables in this context." #1481
Labels
bug
an unexpected problem or unintended behavior
pivoting ♻️
pivot rectangular data to different "shapes"
After upgrading to v1.3 I noticed,
pivot_longer
fails when I pass a vector with names attributes to thecols
argument.Relevant issues: #1104 and #1160. Looks like #1405 is the breaking change?
I discovered this when trying to create custom
tidymodels::recipes
steps. Would it be best practice to useas.character(cols)
for anything passed topivot_longer
? This may not be enough context, but here is what I was working on if more context might help.Here is a reprex:
Created on 2023-02-02 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: