case_weights in Tidymodels


I am attempting to use the following code to install the packages to use case_wts and ```
add_case_weights. Before trying this, I checked the help documentation and did not see it in my version of tidyverse. I keep getting an error on installation:

if (!rlang::is_installed("pak")) {

pkgs <- c("hardhat", "parsnip", "recipes",
          "modeldata", "tune", "workflows", "yardstick")
pkgs <- paste0("tidymodels/", pkgs)


! error in pak subprocess
Caused by error: 
! Could not solve package dependencies:
* tidymodels/tune: Can't install dependency tidymodels/yardstick#434 (>= 1.2.0)
* tidymodels/yardstick#434: Conflicts with tidymodels/yardstick

It appears my yardstick version exceeds the dependency version. Is there a fix or workaround for this?

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.