Closed
Description
Rather than making the most minimal change possible, I think it will be better for the long term code health of workflows to add tidyclust as a new model "action" (this is what actions were intended for anyways). This allows you:
- To isolate the tidyclust changes (for the most part) in
fit-action-model-tidyclust.R
- To add a new
add_model_tidyclust()
API that is simpler and separate fromadd_model()
(i.e. noformula
argument for model formulas) - To use
check_conflicts()
to ensure that the user can't add both a tidyclust model and a parsnip model to the workflow- We would add a method for both
action_model
andaction_model_tidyclust
types
- We would add a method for both
Rather than Importing or Suggesting tidyclust, since it is so heavy I think we should just use something like dplyr:::import_vctrs()
(but not in .onLoad()
because we dont know if tidyclust will be installed) to access functions from tidyclust that we need to call. Since we own both packages, I think that this is okay.