Skip to content

Commit

Permalink
Replace rather than append envvars in check
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhester authored and HughParsonage committed Jul 2, 2019
1 parent 89f8b87 commit ca09163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# devtools 2.0.1.9000 - Development

* `check()` now replaces existing environment variables rather than appending
them (#1914).

# devtools 2.0.1

This is a minor release mainly fixing bugs which snuck through in the devtools
Expand Down
2 changes: 1 addition & 1 deletion R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ check_built <- function(path = NULL, cran = TRUE,
show_env_vars(env_vars, trailing = FALSE)
}

withr::with_envvar(env_vars, action = "prefix", {
withr::with_envvar(env_vars, action = "replace", {
rcmdcheck::rcmdcheck(path,
quiet = quiet, args = args,
check_dir = check_dir, error_on = error_on
Expand Down

0 comments on commit ca09163

Please sign in to comment.