-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dplyr::bind_rows fails with XYZ geometry in dplyr 1.0 #1390
Comments
@Robinlovelace does this affect any of your packages? |
@lionel- any ideas? |
Not at present, the |
I was going to take a look. I'll do it now. |
@Robinlovelace Any failing test cases that you think might have different causes of failures would be great! |
@mem48 I'm working on improving base fallbacks in vctrs so we can just use |
@lionel- thanks for the update. Sorry I got a bit panicked that my package would break and be pulled from CRAN. Glad to hear a solution is in the works. |
@edzer I think you can close this since the fix will come from our side, and we're testing this specific case. |
@lionel- I tested your commits to
A new error message, so perhaps a new problem? |
@mem48 Confirmed thanks, I see what's going on. Sorry this might have to wait until after Wednesday, but I'll hold vctrs 0.3.1 so I can fix this. |
Thanks, at the moment I'm advising my users not to update dplyr but that will become harder over time. |
As far as I know |
So The place my package is having problems is here The relevant bit of code is below.
I've seen this used quite widely, it is useful when iterating over each row of an sf data frame, If you use a for loop or lapply you often end up with a list of 1 row data frames. |
@lionel- I've had an email from CRAN giving me until the 15th to fix the problem, or my package will be pulled from CRAN. Do you think @edzer If this is not fixed soon, it would be worth reopening this issue, in case others come across the same problem. |
@mem48 yes — we are literally working on this as hard as we possible can. |
@mem48 just to be clear, this will be fixed by vctrs 0.3.1 which will be coming out later this week, but you have made a bad situation for yourself. It's a bad idea to silence warnings that tell you what you're doing is dangerous. |
@hadley as a general rule I would agree. But my options were limited. Not using |
I'm not sure if this is an SF or dplyr problem, so posting here first.
I'm updating my package to support the major breaking changes in dplyr 1.0.
I use
dplyr::bind_rows
to bind a list of sf data frames into a single data frame.Simple example:
This works with both the CRAN and GitHub version of dplyr.
But if I use an XYZ linestring:
I get an error:
This is not true as all the geometries are LINESTRING Z, and this error does not occur when I use the CRAN version of dplyr.
Session Info:
The text was updated successfully, but these errors were encountered: