Using case weights with tidymodels

This is a companion discussion topic for the original entry at https://www.tidyverse.org/blog/2022/05/case-weights