PaoloDalena/tastypie

Problem with tibbles

Closed this issue · 1 comments

Cant bake with tibbles :(

library(tastypie)
#>             $$  $$  $$
#>           __||__||__||__
#>          | * * * * * * *|
#>          |* * * * * * * |
#>          | * * * * * * *|
#>          |______________|
#>  _              _              _
#> | |_  ___  ___ | |_  _ _  ___ |_| ___
#> |  _|| .'||_ -||  _|| | || . || || -_|
#> |_|  |__,||___||_|  |_  ||  _||_||___|
#>                     |___||_|
library(tibble)

data <- data.frame(group = "a", value = 1)

pie_datacheck(data)

pie_datacheck(as_tibble(data))
#> Error in pie_datacheck(as_tibble(data)): In the second variable (column) of the dataframe there must be numerical values!

Created on 2021-03-01 by the reprex package (v1.0.0)

Now you should be able to bake also with tibbles.
I will upload this new tibble-friendly patch on CRAN as soon as possible. In the meantime, you can install the development version from GitHub.
Thank you very much for the feedback! :)