R/clean.R

Defines functions clean_mlr3book

Documented in clean_mlr3book

#' @title Clean the mlr3 book
#'
#' @description
#' Calls [bookdown::clean_book()] with `clean` set to `TRUE`.
#'
#' @export
clean_mlr3book = function() {
  root = rprojroot::find_package_root_file()
  withr::with_dir(file.path(root, "bookdown"),
    bookdown::clean_book(clean = TRUE)
  )
}
nguyenngocbinh/mlr3_book_vi documentation built on Jan. 23, 2020, 12:28 p.m.