Skip to content

Improved error handling for the constructor of parameter sets #295

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

Merged
merged 8 commits into from
Mar 31, 2023

Conversation

hfrick
Copy link
Member

@hfrick hfrick commented Mar 31, 2023

The checks inside the constructor parameters_constr() now

  • use rlang's type checker for a character vector
  • check that inputs have the same size (which was requested in the docs)
  • pass the call along

@hfrick hfrick requested a review from simonpcouch March 31, 2023 14:53
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.

So stellar! So good!🪐

tune imports this helper but does not use it, so I'll put in a PR over there to not import it.

parsnip uses this helper and sees no new test failures with this PR installed. The caller_env() in that use is extract_parameter_set_dials(), so need to newly set it.

simonpcouch added a commit to tidymodels/tune that referenced this pull request Mar 31, 2023
@hfrick hfrick merged commit 0bcf733 into main Mar 31, 2023
@hfrick hfrick deleted the errors-parameters branch March 31, 2023 15:22
@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 Jul 26, 2023
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