Error message when run the example in the Readme of package workflowsets

When I run the example code in the readme of package workflowsets from the page:

I had an error message:

set.seed(123)
chi_models <-
chi_models %>%
workflow_map("tune_grid", resamples = splits, grid = 10,
metrics = metric_set(mae), verbose = TRUE)

i 1 of 7 tuning: simple_glmnet
Error: Some elements of 'result' do not have class tune_results.

Can you help me figure out where the error from? Thanks.

3 Likes

I'm encountering this error, too. Any luck?

Hi gserapio,

No. I have got any luck yet.

After running the code (and it failing), can you give the results of sessioninfo::session_info()?

Hi Max,

Here is my session info.

- Session info --------------------------------------------------------------------------------------
 setting  value                       
 version  R version 4.0.4 (2021-02-15)
 os       Windows 7 x64 SP 1          
 system   x86_64, mingw32             
 ui       RStudio                     
 language (EN)                        
 collate  English_United States.1252  
 ctype    English_United States.1252  
 tz       America/New_York            
 date     2021-04-03                  

- 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)
 broom        * 0.7.5      2021-02-19 [1] CRAN (R 4.0.4)
 class          7.3-18     2021-01-24 [1] CRAN (R 4.0.4)
 cli            2.3.1      2021-02-23 [1] CRAN (R 4.0.4)
 codetools      0.2-18     2020-11-04 [1] CRAN (R 4.0.3)
 colorspace     2.0-0      2020-11-11 [1] CRAN (R 4.0.4)
 crayon         1.4.1      2021-02-08 [1] CRAN (R 4.0.4)
 DBI            1.1.1      2021-01-15 [1] CRAN (R 4.0.4)
 dials        * 0.0.9      2020-09-16 [1] CRAN (R 4.0.4)
 DiceDesign     1.9        2021-02-13 [1] CRAN (R 4.0.4)
 digest         0.6.27     2020-10-24 [1] CRAN (R 4.0.4)
 dplyr        * 1.0.5      2021-03-05 [1] CRAN (R 4.0.4)
 ellipsis       0.3.1      2020-05-15 [1] CRAN (R 4.0.0)
 fansi          0.4.2      2021-01-15 [1] CRAN (R 4.0.4)
 foreach        1.5.1      2020-10-15 [1] CRAN (R 4.0.4)
 furrr          0.2.2      2021-01-29 [1] CRAN (R 4.0.4)
 future         1.21.0     2020-12-10 [1] CRAN (R 4.0.4)
 generics       0.1.0      2020-10-31 [1] CRAN (R 4.0.4)
 ggplot2      * 3.3.3      2020-12-30 [1] CRAN (R 4.0.4)
 globals        0.14.0     2020-11-22 [1] CRAN (R 4.0.3)
 glue           1.4.2      2020-08-27 [1] CRAN (R 4.0.4)
 gower          0.2.2      2020-06-23 [1] CRAN (R 4.0.3)
 GPfit          1.0-8      2019-02-08 [1] CRAN (R 4.0.4)
 gtable         0.3.0      2019-03-25 [1] CRAN (R 4.0.0)
 infer        * 0.5.4      2021-01-13 [1] CRAN (R 4.0.4)
 ipred          0.9-11     2021-03-12 [1] CRAN (R 4.0.4)
 iterators      1.0.13     2020-10-15 [1] CRAN (R 4.0.4)
 lattice        0.20-41    2020-04-02 [1] CRAN (R 4.0.0)
 lava           1.6.9      2021-03-11 [1] CRAN (R 4.0.4)
 lhs            1.1.1      2020-10-05 [1] CRAN (R 4.0.4)
 lifecycle      1.0.0      2021-02-15 [1] CRAN (R 4.0.4)
 listenv        0.8.0      2019-12-05 [1] CRAN (R 4.0.4)
 lubridate      1.7.10     2021-02-26 [1] CRAN (R 4.0.4)
 magrittr       2.0.1      2020-11-17 [1] CRAN (R 4.0.4)
 MASS           7.3-53.1   2021-02-12 [1] CRAN (R 4.0.4)
 Matrix         1.2-18     2019-11-27 [1] CRAN (R 4.0.3)
 modeldata    * 0.1.0      2020-10-22 [1] CRAN (R 4.0.4)
 munsell        0.5.0      2018-06-12 [1] CRAN (R 4.0.0)
 nnet           7.3-15     2021-01-24 [1] CRAN (R 4.0.4)
 parallelly     1.24.0     2021-03-14 [1] CRAN (R 4.0.4)
 parsnip      * 0.1.5      2021-01-19 [1] CRAN (R 4.0.4)
 pillar         1.5.1      2021-03-05 [1] CRAN (R 4.0.4)
 pkgconfig      2.0.3      2019-09-22 [1] CRAN (R 4.0.0)
 plyr           1.8.6      2020-03-03 [1] CRAN (R 4.0.0)
 pROC           1.17.0.1   2021-01-13 [1] CRAN (R 4.0.4)
 prodlim        2019.11.13 2019-11-17 [1] CRAN (R 4.0.4)
 purrr        * 0.3.4      2020-04-17 [1] CRAN (R 4.0.0)
 R6             2.5.0      2020-10-28 [1] CRAN (R 4.0.4)
 Rcpp           1.0.6      2021-01-15 [1] CRAN (R 4.0.4)
 recipes      * 0.1.15     2020-11-11 [1] CRAN (R 4.0.4)
 rlang          0.4.10     2020-12-30 [1] CRAN (R 4.0.4)
 rpart          4.1-15     2019-04-12 [1] CRAN (R 4.0.0)
 rsample      * 0.0.9      2021-02-17 [1] CRAN (R 4.0.4)
 rstudioapi     0.13       2020-11-12 [1] CRAN (R 4.0.4)
 scales       * 1.1.1      2020-05-11 [1] CRAN (R 4.0.0)
 sessioninfo    1.1.1      2018-11-05 [1] CRAN (R 4.0.4)
 slider         0.2.1      2021-03-23 [1] CRAN (R 4.0.4)
 survival       3.2-10     2021-03-16 [1] CRAN (R 4.0.4)
 tibble       * 3.1.0      2021-02-25 [1] CRAN (R 4.0.4)
 tidymodels   * 0.1.2      2020-11-22 [1] CRAN (R 4.0.4)
 tidyr        * 1.1.3      2021-03-03 [1] CRAN (R 4.0.4)
 tidyselect     1.1.0      2020-05-11 [1] CRAN (R 4.0.0)
 timeDate       3043.102   2018-02-21 [1] CRAN (R 4.0.0)
 tinytex        0.31       2021-03-30 [1] CRAN (R 4.0.4)
 tune         * 0.1.3      2021-02-28 [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)
 warp           0.2.0      2020-10-21 [1] CRAN (R 4.0.4)
 withr          2.4.1      2021-01-26 [1] CRAN (R 4.0.4)
 workflows    * 0.2.2      2021-03-10 [1] CRAN (R 4.0.4)
 workflowsets * 0.0.1      2021-03-18 [1] CRAN (R 4.0.4)
 xfun           0.22       2021-03-11 [1] CRAN (R 4.0.4)
 yardstick    * 0.0.8      2021-03-28 [1] CRAN (R 4.0.4)
1 Like

Please load the new version

remotes::install_dev("workflowsets")

and try again.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.