tidymodels / tune

Tools for tidy parameter tuning
https://tune.tidymodels.org
Other
282 stars 42 forks source link

GitHub tag `v1.2.1` reflects `main` at the time rather than the 1.2.1 CRAN release #897

Closed simonpcouch closed 5 months ago

simonpcouch commented 5 months ago

The following warning would not be triggered with the CRAN version but is with the analogous GitHub tag.

pak::pak("tidymodels/tune@v1.2.1")
#> ℹ Loading metadata database
#> ✔ Loading metadata database ... done
#> 
#> 
#> ℹ No downloads are needed
#> ✔ 1 pkg + 81 deps: kept 79 [4.9s]

library(foreach)
library(doMC)
#> Loading required package: iterators
#> Loading required package: parallel
registerDoMC(4)

library(tidymodels)

fit_resamples(linear_reg(), mpg ~ ., bootstraps(mtcars))
#> Warning: ! tune detected a parallel backend registered with foreach but no backend
#>   registered with future.
#> ℹ Support for parallel processing with foreach was soft-deprecated in tune
#>   1.2.1.
#> ℹ See ?parallelism (`?tune::parallelism()`) to learn more.
#> # Resampling results
#> # Bootstrap sampling 
#> # A tibble: 25 × 4
#>    splits          id          .metrics         .notes          
#>    <list>          <chr>       <list>           <list>          
#>  1 <split [32/8]>  Bootstrap01 <tibble [2 × 4]> <tibble [0 × 4]>
#>  2 <split [32/13]> Bootstrap02 <tibble [2 × 4]> <tibble [0 × 4]>
#>  3 <split [32/11]> Bootstrap03 <tibble [2 × 4]> <tibble [0 × 4]>
#>  4 <split [32/11]> Bootstrap04 <tibble [2 × 4]> <tibble [0 × 4]>
#>  5 <split [32/15]> Bootstrap05 <tibble [2 × 4]> <tibble [0 × 4]>
#>  6 <split [32/10]> Bootstrap06 <tibble [2 × 4]> <tibble [0 × 4]>
#>  7 <split [32/10]> Bootstrap07 <tibble [2 × 4]> <tibble [0 × 4]>
#>  8 <split [32/9]>  Bootstrap08 <tibble [2 × 4]> <tibble [0 × 4]>
#>  9 <split [32/13]> Bootstrap09 <tibble [2 × 4]> <tibble [0 × 4]>
#> 10 <split [32/10]> Bootstrap10 <tibble [2 × 4]> <tibble [0 × 4]>
#> # ℹ 15 more rows

Created on 2024-05-23 with reprex v2.1.0

simonpcouch commented 5 months ago

Just addressed. :)

github-actions[bot] commented 5 months ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.