Skip to content

Update tidyflow for full tidymodels ecosystem compatibility#34

Open
gutama wants to merge 2 commits intocimentadaj:masterfrom
gutama:claude/update-tidyflow-workflows-YcLdD
Open

Update tidyflow for full tidymodels ecosystem compatibility#34
gutama wants to merge 2 commits intocimentadaj:masterfrom
gutama:claude/update-tidyflow-workflows-YcLdD

Conversation

@gutama
Copy link

@gutama gutama commented Jan 9, 2026

Additional compatibility updates for tidymodels packages:

  • Replace deprecated tune::parameters() with hardhat::extract_parameter_set_dials() in R/parameters.R and R/pre-action-grid.R

  • Update minimum version requirements:

    • parsnip: 0.1.3 → 1.0.0
    • tune: 0.1.0 → 1.0.0
    • dials: 0.0.6 → 1.0.0
    • hardhat: 0.1.2 → 1.0.0
    • generics: 0.0.2 → 0.1.0
  • Expand NEWS.md to document all tidymodels compatibility changes

These changes ensure tidyflow works with the modern tidymodels ecosystem where the parameters() methods are deprecated in favor of extract_parameter_set_dials().

Additional compatibility updates for tidymodels packages:

- Replace deprecated tune::parameters() with
  hardhat::extract_parameter_set_dials() in R/parameters.R and
  R/pre-action-grid.R

- Update minimum version requirements:
  - parsnip: 0.1.3 → 1.0.0
  - tune: 0.1.0 → 1.0.0
  - dials: 0.0.6 → 1.0.0
  - hardhat: 0.1.2 → 1.0.0
  - generics: 0.0.2 → 0.1.0

- Expand NEWS.md to document all tidymodels compatibility changes

These changes ensure tidyflow works with the modern tidymodels
ecosystem where the parameters() methods are deprecated in favor
of extract_parameter_set_dials().
Copilot AI review requested due to automatic review settings January 9, 2026 19:32
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates tidyflow to ensure compatibility with the modern tidymodels ecosystem (version 1.0.0+) by replacing deprecated API calls and updating minimum version requirements.

  • Replaces deprecated tune::parameters() with hardhat::extract_parameter_set_dials() for extracting tuning parameters
  • Updates minimum version requirements for core tidymodels packages to 1.0.0
  • Documents all compatibility changes in NEWS.md

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
R/parameters.R Updated parameters.tidyflow() method to use hardhat::extract_parameter_set_dials() instead of deprecated tune::parameters()
R/pre-action-grid.R No functional changes; calls internal parameters() method which now uses the new API
NEWS.md Documented breaking changes (version requirements) and internal changes (API replacements)
DESCRIPTION Updated minimum version requirements for generics, hardhat, parsnip, tune, and dials packages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

New features:
- Add extract_* methods for tidymodels consistency (extract_fit_parsnip,
  extract_spec_parsnip, extract_preprocessor, extract_mold, extract_recipe,
  extract_parameter_set_dials)
- Add plug_tune() for alternative tuning methods (tune_bayes,
  tune_sim_anneal, tune_race_anova, tune_race_win_loss)
- Add control_bayes parameter to control_tidyflow()

Improvements:
- Improve error messages using cli package with contextual hints
- Update documentation to reference new extract_* methods
- Add "tune" to sacred_order in action.R for plug_tune support

Files added:
- R/extract.R: tidymodels-consistent extract_* methods
- R/pre-action-tune.R: plug_tune/drop_tune/replace_tune functions
@cimentadaj
Copy link
Owner

Hey, do you want to take over the package? I'm not giving any maintenance at all.

@gutama
Copy link
Author

gutama commented Jan 9, 2026

I am not really an expert on R, just learn a bit of AI tools. Your package is a really a good one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants