man-roxygen/autoinfo_dict.R

#' @section Dictionary:
#' This [`<%= classname %>`] can be created with the short access form [`<%= shortname %>()`]
#' ([`<%= shortnameplural %>()`] to get a list), or through the the [dictionary][mlr3misc::Dictionary]
#' [`<%= dictname %>`] in the following way:
#' ```
#' # preferred:
#' <%= shortname %>("<%= id %>"<%= tryCatch(gsub("\\\\([<>])", "\\1", additional), error = function(e) "") %>)
#' <%= shortnameplural %>("<%= id %>"<%= tryCatch(gsub("\\\\([<>])", "\\1", additional), error = function(e) "") %>)  # takes vector IDs, returns list of <%= classname %>s
#'
#' # long form:
#' <%= dictname %>$get("<%= id %>"<%= tryCatch(gsub("\\\\([<>])", "\\1", additional), error = function(e) "") %>)
#' ```
mlr-org/miesmuschel documentation built on April 5, 2025, 6:08 p.m.