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

tests: remove loading of mlr3pipelines #471

Merged
merged 3 commits into from
Nov 25, 2024
Merged

tests: remove loading of mlr3pipelines #471

merged 3 commits into from
Nov 25, 2024

Conversation

be-marc
Copy link
Member

@be-marc be-marc commented Nov 22, 2024

No description provided.

@@ -275,7 +273,7 @@ test_that("search space from TuneToken works", {

test_that("AutoTuner get_base_learner method works", {
skip_if_not_installed("mlr3pipelines", "0.5.3")
requireNamespace("mlr3pipelines")
`%>>%` = getFromNamespace("%>>%", asNamespace("mlr3pipelines"))
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this make it look like %>>% is private, but it's exported:

https://github.com/mlr-org/mlr3pipelines/blob/9d4cced9b7b887db6c80c4fafd861398f727cf29/NAMESPACE#L84

(asNamespace() gives all objects in the package, including those not exported in NAMESPACE)

I would just use:

`%>>%` = mlr3pipelines::`%>>%`

(same for elsewhere that I see)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes that's better. Thanks

@be-marc be-marc merged commit 541c478 into main Nov 25, 2024
5 checks passed
@be-marc be-marc deleted the pipelines branch November 25, 2024 08:39
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