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

add rlang type checkers #950

Merged
merged 12 commits into from
Oct 23, 2024
Merged

add rlang type checkers #950

merged 12 commits into from
Oct 23, 2024

Conversation

topepo
Copy link
Member

@topepo topepo commented Oct 23, 2024

Minimal changes, avoiding rlang::abort(), cli updates, and call routing 😞

@@ -537,6 +517,7 @@ val_class_or_null <- function(x, cls = "numeric", where = NULL) {
}
invisible(NULL)
}
# TODO remove this once finetune is updated
Copy link
Member Author

Choose a reason for hiding this comment

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

Note to myself and @simonpcouch to make similar changes to finetune so that we can remove these three checking functions

# ------------------------------------------------------------------------------
# acq functions

check_direction <- function(x) {
Copy link
Member Author

Choose a reason for hiding this comment

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

DELETE

Copy link
Contributor

Choose a reason for hiding this comment

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

SO SATISFYING

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.

yeah i love this :^D

# ------------------------------------------------------------------------------
# acq functions

check_direction <- function(x) {
Copy link
Contributor

Choose a reason for hiding this comment

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

SO SATISFYING

logical value.", call = call)
}
invisible(NULL)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL that this control option existed😆

R/checks.R Outdated Show resolved Hide resolved
x Fold2: preprocessor 1/1:
Error in `step_spline_b()`:
Caused by error in `glue()`:
! Expecting '}'
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm seeing this change reverted in the snaps on GHA🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

The error we should get is there now; I fixed a bug in recipes that resolved the glue() one. Funny: we were grepping against the glue issue in the logging tests here. I converted it to a snapshot.

Co-authored-by: Simon P. Couch <simonpatrickcouch@gmail.com>
@topepo topepo marked this pull request as ready for review October 23, 2024 20:06
@topepo topepo merged commit 1184068 into main Oct 23, 2024
12 checks passed
@topepo topepo deleted the type-checkers branch October 23, 2024 20:07
Copy link

github-actions bot commented Nov 7, 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 Nov 7, 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.

2 participants