Skip to content

Commit

Permalink
docs: add return docu
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer committed Oct 10, 2022
1 parent ff3e80a commit 711f2e2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/autoplot.BenchmarkAggr.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
#' @references
#' `r format_bib("demsar_2006")`
#'
#' @return
#' The generated plot.
#'
#' @examples
#' if (requireNamespaces(c("mlr3learners", "mlr3", "rpart", "xgboost"))) {
#' library(mlr3)
Expand Down
2 changes: 2 additions & 0 deletions R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#' @title Helper Vectorizing requireNamespace
#' @description Internal helper function for documentation.
#' @param x Packages to check.
#' @return
#' A `logical(1)`, indicating wether all required packages are available.
#' @export
requireNamespaces = function(x) { # nolint
if (all(map_lgl(x, requireNamespace, quietly = TRUE))) {
Expand Down
3 changes: 3 additions & 0 deletions man/autoplot.BenchmarkAggr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/requireNamespaces.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 711f2e2

Please sign in to comment.