Closed edzer closed 4 years ago
According to the news,
List classes are no longer automatically treated as vectors. Symptoms:
- Error: All columns in a tibble must be vectors
- Error: Expected a vector, not a ... object
If you implement a class that wraps a list as S3 vector, you need to include "list" in the class:
structure(x, class = c("your_s3_class", "list"))
So adding "list"
to "mixed_units"
should be enough.
Simple fix. Tested successfully against tibble 2.99.99.9014. NEWS and version updated, ready for CRAN submission.
Thank you so much!
Great, on its way to CRAN now.
Dear Edzer Pebesma,
This is an automated email to let you know that:
A new version of tibble is ready to go to CRAN. tibble is currently at version 2.99.99.9014 and will become 3.0.0 upon release.
units uses tibble and has problems with the new version.
We plan to submit tibble to CRAN on Mar 18.
Major update, using vctrs internally.
I need your help to keep units and tibble working together smoothly. In the next days, can you please:
Read about the changes to tibble at https://github.com/tidyverse/tibble/blob/master/NEWS.md. This page includes a list of breaking changes, the reasoning behind them, and to how to update your code.
Carefully inspect the failing checks listed at the bottom of this email.
For each failing check, either update your package, or tell me that I have a bug. If you have made changes to your package, please submit an update to CRAN before Mar 18.
If you have discovered a bug in tibble, please file an issue (ideally with a small reprex that illustrates the problem) at https://github.com/tidyverse/tibble/issues. If you're not sure whether or not you've found a bug, please file an issue at https://github.com/tidyverse/tibble/issues for discussion. Breaking changes that are not listed qualify as bugs.
Please respond to this message if you have any questions.
Thanks,
Kirill
== CHECK RESULTS ========================================
checking tests ...