Skip to content

Commit

Permalink
Rename build_win to check_win
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhester committed Oct 18, 2017
1 parent a0c8d73 commit 60ac8f0
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 22 deletions.
5 changes: 4 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,16 @@ export(bash)
export(build)
export(build_manual)
export(build_vignettes)
export(build_win)
export(check)
export(check_built)
export(check_cran)
export(check_dep_version)
export(check_failures)
export(check_man)
export(check_win)
export(check_win_devel)
export(check_win_oldrelease)
export(check_win_release)
export(clean_dll)
export(clean_vignettes)
export(create)
Expand Down
35 changes: 24 additions & 11 deletions R/build-win.r → R/check-win.r
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,34 @@
#' @param pkg package description, can be path or package name. See
#' \code{\link{as.package}} for more information
#' @param args Any additional arguments to pass to \code{\link[pkgbuild]{build}}
#' @param quiet If \code{TRUE}, suppresses outut.
#' @param version directory to upload to on the win-builder, controlling
#' which version of R is used to build the package. Possible options are
#' listed on \url{http://win-builder.r-project.org/}. Defaults to R-devel.
#' @param quiet If \code{TRUE}, suppresses output.
#' @export
#' @family build functions
build_win <- function(pkg = ".", version = c("R-release", "R-devel"),
#' @name check_win
NULL

#' @describeIn check_win Check package on the development version of R.
#' @export
check_win_devel <- function(pkg = ".", args = NULL, quiet = FALSE) {
check_win(pkg = pkg, version = "R-devel", args = args, )
}

#' @describeIn check_win Check package on the release version of R.
#' @export
check_win_release <- function(pkg = ".", args = NULL, quiet = FALSE) {
check_win(pkg = pkg, version = "R-release", args = args, )
}

#' @describeIn check_win Check package on the previous major release version of R.
#' @export
check_win_oldrelease <- function(pkg = ".", args = NULL, quiet = FALSE) {
check_win(pkg = pkg, version = "R-oldrelease", args = args, )
}

check_win <- function(pkg = ".", version = c("R-devel", "R-release", "R-oldrelease"),
args = NULL, quiet = FALSE) {
pkg <- as.package(pkg)

if (missing(version)) {
version <- "R-devel"
} else {
version <- match.arg(version, several.ok = TRUE)
}
version <- match.arg(version)

if (!quiet) {
message("Building windows version of ", pkg$package,
Expand Down
31 changes: 21 additions & 10 deletions man/build_win.Rd → man/check_win.Rd

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

0 comments on commit 60ac8f0

Please sign in to comment.