Skip to content

Commit

Permalink
Use argument .dicts_suggest in dictionary_sugar_get
Browse files Browse the repository at this point in the history
  • Loading branch information
advieser authored Oct 8, 2024
1 parent 4acedc6 commit 2a5fc15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ppl.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

0 comments on commit 2a5fc15

Please sign in to comment.