From 4acedc68648f63ea98fcaa8ea026e7eb2a6fea20 Mon Sep 17 00:00:00 2001 From: "Keno M." <118814423+advieser@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:09:07 +0200 Subject: [PATCH 1/5] Use argument `.dicts_suggest` in `dictionary_sugar_get` --- R/po.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/po.R b/R/po.R index e8c6315a3..03d28a977 100644 --- a/R/po.R +++ b/R/po.R @@ -83,7 +83,7 @@ po.PipeOp = function(.obj, ...) { #' @export po.character = function(.obj, ...) { - dictionary_sugar_inc_get(dict = mlr_pipeops, .key = .obj, ...) + dictionary_sugar_inc_get(dict = mlr_pipeops, .key = .obj, ..., .dicts_suggest = list("ppl()" = mlr_graphs)) } #' @export @@ -111,7 +111,7 @@ pos.NULL = function(.objs, ...) { #' @export pos.character = function(.objs, ...) { - dictionary_sugar_inc_mget(dict = mlr_pipeops, .keys = .objs, ...) + dictionary_sugar_inc_mget(dict = mlr_pipeops, .keys = .objs, ..., .dicts_suggest = list("ppl()" = mlr_graphs)) } #' @export From 2a5fc15e953bf7291c7fe9c8eb99a813545a3b44 Mon Sep 17 00:00:00 2001 From: "Keno M." <118814423+advieser@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:11:48 +0200 Subject: [PATCH 2/5] Use argument `.dicts_suggest` in `dictionary_sugar_get` --- R/ppl.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/ppl.R b/R/ppl.R index 1548d25ce..374c4f17d 100644 --- a/R/ppl.R +++ b/R/ppl.R @@ -23,12 +23,12 @@ #' gr = ppl("bagging", graph = po(lrn("regr.rpart")), #' averager = po("regravg", collect_multiplicity = TRUE)) ppl = function(.key, ...) { - dictionary_sugar_get(dict = mlr_graphs, .key = .key, ...) + dictionary_sugar_get(dict = mlr_graphs, .key = .key, ..., .dicts_suggest = list("po()" = mlr_pipeops)) } #' @export #' @rdname ppl ppls = function(.keys, ...) { if (missing(.keys)) return(mlr_graphs) - map(.x = .keys, .f = dictionary_sugar_get, dict = mlr_graphs, ...) + map(.x = .keys, .f = dictionary_sugar_get, dict = mlr_graphs, ..., .dicts_suggest = list("pos()" = mlr_pipeops)) } From 2b868bed6b27a0527b381f724a2a88efd169ba40 Mon Sep 17 00:00:00 2001 From: "Keno M." <118814423+advieser@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:12:48 +0200 Subject: [PATCH 3/5] Use name `ppls()` for `.dicts_suggest` in `pos()` --- R/po.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/po.R b/R/po.R index 03d28a977..7c23c44cf 100644 --- a/R/po.R +++ b/R/po.R @@ -111,7 +111,7 @@ pos.NULL = function(.objs, ...) { #' @export pos.character = function(.objs, ...) { - dictionary_sugar_inc_mget(dict = mlr_pipeops, .keys = .objs, ..., .dicts_suggest = list("ppl()" = mlr_graphs)) + dictionary_sugar_inc_mget(dict = mlr_pipeops, .keys = .objs, ..., .dicts_suggest = list("ppls()" = mlr_graphs)) } #' @export From e1c37b4a6f0e8b9d0131f0cce1af938cfdc66dd5 Mon Sep 17 00:00:00 2001 From: "Keno M." <118814423+advieser@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:46:35 +0200 Subject: [PATCH 4/5] Update version for `mlr3misc` to 0.15.2 --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 53a9a06f2..64aef16d2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -62,7 +62,7 @@ Imports: digest, lgr, mlr3 (>= 0.20.0), - mlr3misc (>= 0.9.0), + mlr3misc (>= 0.15.2), paradox, R6, withr From 0027e3e970f29926c1135b41b8dcdf57f8d63519 Mon Sep 17 00:00:00 2001 From: "Keno M." <118814423+advieser@users.noreply.github.com> Date: Wed, 27 Nov 2024 22:24:48 +0100 Subject: [PATCH 5/5] correct mlr3misc version in DESCRIPTION --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 64aef16d2..6aba52c38 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -62,7 +62,7 @@ Imports: digest, lgr, mlr3 (>= 0.20.0), - mlr3misc (>= 0.15.2), + mlr3misc (>= 0.16.0), paradox, R6, withr