Skip to content

Commit

Permalink
Use new style upgrade arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhester committed Oct 17, 2018
1 parent aa322be commit 5ba2cd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/build-readme.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ build_readme <- function(path = ".", quiet = TRUE, ...) {

build <- function(pkg_path, readme_path, ..., quiet) {
withr::with_temp_libpaths(action = "prefix", code = {
devtools::install(pkg_path, upgrade_dependencies = FALSE, reload = FALSE, quiet = quiet)
devtools::install(pkg_path, upgrade = "never", reload = FALSE, quiet = quiet)
rmarkdown::render(readme_path, ..., quiet = quiet)
})
}
Expand Down
2 changes: 1 addition & 1 deletion R/build-site.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build_site <- function(path = ".", quiet = TRUE, ...) {
pkg <- as.package(path)

withr::with_temp_libpaths(action = "prefix", code = {
install(pkg = pkg$path, upgrade_dependencies = FALSE, reload = FALSE, quiet = quiet)
install(pkg = pkg$path, upgrade = "never", reload = FALSE, quiet = quiet)
if (isTRUE(quiet)) {
withr::with_output_sink(
tempfile(),
Expand Down
4 changes: 2 additions & 2 deletions R/vignettes.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
build_vignettes <- function(pkg = ".",
dependencies = "VignetteBuilder",
clean = TRUE,
upgrade = TRUE,
upgrade = "never",
quiet = TRUE,
install = TRUE,
keep_md = TRUE) {
Expand All @@ -45,7 +45,7 @@ build_vignettes <- function(pkg = ".",
if (isTRUE(install)) {
build <- function(pkg_path, clean, quiet, upgrade) {
withr::with_temp_libpaths(action = "prefix", {
devtools::install(pkg_path, upgrade_dependencies = upgrade, reload = FALSE, quiet = quiet)
devtools::install(pkg_path, upgrade = upgrade, reload = FALSE, quiet = quiet)
tools::buildVignettes(dir = pkg_path, clean = clean, tangle = TRUE, quiet = quiet)
})
}
Expand Down

0 comments on commit 5ba2cd2

Please sign in to comment.