ropensci / skimr

A frictionless, pipeable approach to dealing with summary statistics
https://docs.ropensci.org/skimr
1.1k stars 79 forks source link

Error: Problem with `summarise()` input `skimmed` #658

Closed tungttnguyen closed 3 years ago

tungttnguyen commented 3 years ago

Hi,

I ran into this issue today but am not sure what caused the problem. Could you please help? Thanks!

library(skimr)
skim(iris)
#> Error: Problem with `summarise()` input `skimmed`.
#> x Problem with `summarise()` input `..1`.
#> x object 'mangled_skimmers' not found
#> i Input `..1` is `dplyr::across(variable_names, mangled_skimmers$funs)`.
#> i Input `skimmed` is `purrr::map2(...)`.

Created on 2021-04-13 by the reprex package (v2.0.0)

Session info ``` r sessioninfo::session_info() #> - Session info --------------------------------------------------------------- #> setting value #> version R version 4.0.4 (2021-02-15) #> os Windows 10 x64 #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate English_United States.1252 #> ctype English_United States.1252 #> tz America/Los_Angeles #> date 2021-04-13 #> #> - Packages ------------------------------------------------------------------- #> package * version date lib source #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.0.0) #> backports 1.2.1 2020-12-09 [1] CRAN (R 4.0.3) #> base64enc 0.1-3 2015-07-28 [1] CRAN (R 4.0.3) #> cli 2.4.0 2021-04-05 [1] CRAN (R 4.0.4) #> crayon 1.4.1 2021-02-08 [1] CRAN (R 4.0.3) #> DBI 1.1.1 2021-01-15 [1] CRAN (R 4.0.3) #> digest 0.6.27 2020-10-24 [1] CRAN (R 4.0.3) #> dplyr 1.0.5.9000 2021-04-09 [1] Github (tidyverse/dplyr@8b036bc) #> ellipsis 0.3.1 2020-05-15 [1] CRAN (R 4.0.4) #> evaluate 0.14 2019-05-28 [1] CRAN (R 4.0.0) #> fansi 0.4.2 2021-01-15 [1] CRAN (R 4.0.3) #> fs 1.5.0 2020-07-31 [1] CRAN (R 4.0.3) #> generics 0.1.0 2020-10-31 [1] CRAN (R 4.0.4) #> glue 1.4.2 2020-08-27 [1] CRAN (R 4.0.4) #> highr 0.8 2019-03-20 [1] CRAN (R 4.0.0) #> htmltools 0.5.1.1 2021-01-22 [1] CRAN (R 4.0.4) #> jsonlite 1.7.2 2020-12-09 [1] CRAN (R 4.0.4) #> knitr 1.31.12 2021-04-13 [1] Github (yihui/knitr@18ce1a0) #> lifecycle 1.0.0 2021-02-15 [1] CRAN (R 4.0.4) #> magrittr 2.0.1 2020-11-17 [1] CRAN (R 4.0.4) #> pillar 1.6.0 2021-04-13 [1] CRAN (R 4.0.4) #> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.0.0) #> purrr 0.3.4.9000 2021-04-12 [1] Github (tidyverse/purrr@5aca9df) #> R6 2.5.0 2020-10-28 [1] CRAN (R 4.0.4) #> repr 1.1.3 2021-01-21 [1] CRAN (R 4.0.3) #> reprex 2.0.0 2021-04-02 [1] CRAN (R 4.0.5) #> rlang 0.4.10 2020-12-30 [1] CRAN (R 4.0.4) #> rmarkdown 2.7 2021-02-19 [1] CRAN (R 4.0.4) #> rstudioapi 0.13 2020-11-12 [1] CRAN (R 4.0.4) #> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 4.0.0) #> skimr * 2.1.3 2021-04-14 [1] Github (ropensci/skimr@3f123fe) #> stringi 1.5.3 2020-09-09 [1] CRAN (R 4.0.2) #> stringr 1.4.0 2019-02-10 [1] CRAN (R 4.0.0) #> styler 1.4.1 2021-03-30 [1] CRAN (R 4.0.4) #> tibble 3.1.0 2021-02-25 [1] CRAN (R 4.0.4) #> tidyselect 1.1.0 2020-05-11 [1] CRAN (R 4.0.4) #> utf8 1.2.1 2021-03-12 [1] CRAN (R 4.0.4) #> vctrs 0.3.7 2021-03-29 [1] CRAN (R 4.0.4) #> withr 2.4.1 2021-01-26 [1] CRAN (R 4.0.4) #> xfun 0.22 2021-03-11 [1] CRAN (R 4.0.4) #> yaml 2.2.1 2020-02-01 [1] CRAN (R 4.0.0) #> #> [1] C:/Users/user007/Documents/R/win-library/4.0 #> [2] C:/Program Files/R/R-4.0.4/library ```
michaelquinn32 commented 3 years ago

Thanks for reporting!

We're going to sit on this for a bit, since it looks like you're using dev versions of a couple of tidyverse packages: purrr and dplyr. If you could revert those back to stable, I imagine that it will fix your problem.

We'll see if the issue persists when both are closer to release. We get lots of notifications for this thanks to CRAN.

Best wishes, Michael

elinw commented 3 years ago

Maybe #589 would help us prepare for this?

tungttnguyen commented 3 years ago

This issue has been fixed after this commit https://github.com/tidyverse/dplyr/pull/5863