R/rbuild.r

Defines functions rbuild

Documented in rbuild

#' Build a package
#'
#' @description
#' Build a package located in \code{path} using \code{\link[pkgbuild]{build}}.
#'
#' @template path
#' @template return-itrue
#' @export
rbuild = function(path = getwd()) {
  assertDirectoryExists(path)
  loc = pkgbuild::build(path)

  messagef("The package has been bundled to '%s'.", normalizePath(loc))
  invisible(TRUE)
}
rdatsci/rt documentation built on Dec. 6, 2020, 5:31 p.m.