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

implement tune_args() and tunable() #51

Merged
merged 12 commits into from
Oct 23, 2024
Merged

implement tune_args() and tunable() #51

merged 12 commits into from
Oct 23, 2024

Conversation

simonpcouch
Copy link
Contributor

Quite a bit of machinery borrowed from recipes. (Thanks, recipes!) Mostly generic to tailor and adjustment classes, only adjustment-specific methods are tunable(), which were already implemented. :)

Note that the dials functions referenced in the existing adjustment-specific tunable() methods do not actually exist.

@simonpcouch
Copy link
Contributor Author

check-hard doesn't seem to install the listed Remotes, which is the cause of the failure seen above.

@@ -128,16 +128,15 @@ required_pkgs.equivocal_zone <- function(x, ...) {

#' @export
tunable.equivocal_zone <- function(x, ...) {
tibble::new_tibble(list(
Copy link
Member

Choose a reason for hiding this comment

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

I have no arguments here, but I'm curious why you made that change. Is it for readability (since these aren't likely to be called a large number of times)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for calling that out. I'd like to revisit that and return to using new_tibble(), though there was a vector recycling issue that resulted in an interval vctrs error later on; I think we'll just need to do some manual rep()ping.

)
}

eval_call_info <- function(x) {
Copy link
Member

Choose a reason for hiding this comment

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

Should we make a small standalone file? If not, add some notes/link to original and noocv?

(same for other replicas below)

@simonpcouch
Copy link
Contributor Author

Going to go ahead and merge this to resolve package installation errors for the dev packages, spinning out new issues for Max's comments. See #52.

@simonpcouch simonpcouch merged commit 776c2f4 into main Oct 23, 2024
6 of 7 checks passed
@simonpcouch simonpcouch deleted the tunable branch October 23, 2024 16:20
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.

2 participants