R/rclean.r

Defines functions rclean

Documented in rclean

#' Remove temporary files from a package
#'
#' @description
#' Cleanup temporary files for a package located in \code{path} using \code{\link[pkgbuild]{clean_dll}}.
#'
#' @template path
#' @template return-itrue
#' @export
rclean = function(path = getwd()) {
  # FIXME: Also clean other files, such as vignette leftovers
  messagef("Cleaning package '%s'", pkgload::pkg_name(path = path))
  pkgbuild::clean_dll(path)
  invisible(TRUE)
}
rdatsci/rt documentation built on Dec. 6, 2020, 5:31 p.m.