Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for legacy recipes in bake.step_log() method #1285

Merged

Conversation

stufield
Copy link
Contributor

Possible Bugfix

  • Here is one option to allow legacy objects to still generate bake()ed objects in the new recipes syntax.
  • Not sure if this fits in the larger plan for future upgrades and harmonizing with other steps in the recipe suite, however.
  • Feel free to decline if this does not fit with the larger context.

commit message:

stufield and others added 3 commits February 12, 2024 09:57
- legacy recipes index the `columns` entry of `object`
  whereas newer recipes index `names(object$columns)`
- this breaks backward compatibility
- This bugfix prefers the 'new' syntax, but if
  `names(object)` is `NULL`, reverts to the 'old' syntax
- fixes tidymodels#1284
@EmilHvitfeldt
Copy link
Member

Looking good!

Thanks for the PR, I'll start working on a patch release first thing tomorrow

@EmilHvitfeldt EmilHvitfeldt merged commit b517cd6 into tidymodels:main Feb 16, 2024
9 checks passed
Copy link

github-actions bot commented Mar 2, 2024

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.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The bake.step_log() S3 method breaks legacy recipe objects
2 participants