man-roxygen/example.R

<%
lrn = mlr3::lrn(id)
%>
#' @examples
#' if (requireNamespace("<%= lrn$packages %>")) {
#'   learner = mlr3::lrn("<%= id %>")
#'   print(learner)
#'
#'   # available parameters:
#'   learner$param_set$ids()
#' }
mlr3learners/mlr3learners.mboost documentation built on Aug. 9, 2020, 10:47 p.m.