Skip to content

Commit

Permalink
Remove deprecated cleanup argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhester committed Aug 15, 2017
1 parent 38fccd1 commit e381671
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions R/check.r
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#' and \code{FALSE} to override this default.
#' @param build_args Additional arguments passed to \code{R CMD build}
#' @param ... Additional arguments passed on to \code{\link[pkgbuild]{build}()}.
#' @param cleanup Deprecated.
#' @seealso \code{\link{release}} if you want to send the checked package to
#' CRAN.
#' @export
Expand All @@ -61,12 +60,8 @@ check <- function(pkg = ".",
args = NULL,
env_vars = NULL,
quiet = FALSE,
check_dir = tempdir(),
cleanup = TRUE) {
check_dir = tempdir()) {
pkg <- as.package(pkg)
if (!missing(cleanup)) {
warning("`cleanup` is deprecated", call. = FALSE)
}

# document only if package uses roxygen, i.e. has RoxygenNote field
if (identical(document, NA)) {
Expand Down
4 changes: 1 addition & 3 deletions man/check.Rd

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

0 comments on commit e381671

Please # to comment.