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

Have steps return integers when appropriate #1039

Merged
merged 19 commits into from
Sep 28, 2022
Merged

Have steps return integers when appropriate #1039

merged 19 commits into from
Sep 28, 2022

Conversation

EmilHvitfeldt
Copy link
Member

To close #766.

To be closed before #993 to in according to: #993 (comment).

This PR looks at the following steps:

These steps have their bake.step_*() modified to return integers when it could

  • step_date()
  • step_dummy()
  • step_dummy_extract()
  • step_holiday()
  • step_ordinalscore()
  • step_regex()

These steps have had their argument defaults changed to produce integers by default

  • step_intercept()
  • step_integer()

These steps already returned integers when needed, got tests to verify

  • step_indicate_na()
  • step_count()
  • step_time()

Nothing changed, included for completeness

  • step_dummy_multi_choice()

Copy link
Contributor

@simonpcouch simonpcouch left a comment

Choose a reason for hiding this comment

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

Very much in support of the changes made here! These seem like a good move.🙂

I'm generally not very familiar with the internals of this package and how its dependencies handle its output, so I'm hesitant to approve merging without revdepchecking. Could we cloud_check with these changes? I also ran checks with these changes on a few workflowsets and stacks setups to confirm that there aren't any unanticipated side effects here, especially with how dependencies handle the classes of step_dummy and step_integer output, and saw no breakages!

R/date.R Outdated Show resolved Hide resolved
R/dummy.R Show resolved Hide resolved
NEWS.md Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
R/intercept.R Show resolved Hide resolved
EmilHvitfeldt and others added 4 commits September 27, 2022 12:25
Co-authored-by: Simon P. Couch <simonpatrickcouch@gmail.com>
Co-authored-by: Simon P. Couch <simonpatrickcouch@gmail.com>
@EmilHvitfeldt
Copy link
Member Author

I just finished running a full revdepcheck on this PR and it ran clean. I'm not surprised since recipes currently doesn't really have a way to detect/use integers. #993 on the other hand might break some stuff.

Copy link
Contributor

@simonpcouch simonpcouch left a comment

Choose a reason for hiding this comment

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

Okay, awesome. Thanks for your patience with my hesitance—looks great!☃️

@topepo topepo merged commit 063b3f2 into main Sep 28, 2022
@topepo topepo deleted the all-the-integers branch September 28, 2022 17:38
@github-actions
Copy link

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 Oct 13, 2022
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.

Have steps return integers when appropriate
3 participants