tidymodels / tidyclust

A tidy unified interface to clustering models
https://tidyclust.tidymodels.org/
Other
109 stars 17 forks source link

Error informatively when num_clust is missing when fitting k_means() #150

Closed EmilHvitfeldt closed 1 year ago

EmilHvitfeldt commented 1 year ago

to close #134

This PR:

library(tidyclust)

k_means() |>
  fit(~., data = mtcars)
#> Error in `fit()`:
#> ! Please specify `num_clust` to be able to fit specification.
github-actions[bot] commented 1 year ago

This pull request 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.