Skip to content

Commit

Permalink
Remove encoding argument from call to testthat::test_dir
Browse files Browse the repository at this point in the history
Newer versions of testthat deprecate this argument, so we should no
longer use it in the call.

Fixes #1776
  • Loading branch information
jimhester committed Jul 17, 2018
1 parent cb1df84 commit 99178f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# devtools 1.13.3.9000

* `test()` no longer passes encoding argument to `testthat::test_dir()` (#1776)

* `install_url()` can now install package binaries on windows (#1765)

* Fix skipping when installing from a full SHA (#1624)
Expand Down
5 changes: 1 addition & 4 deletions R/test.r
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ test <- function(pkg = ".", filter = NULL, ...) {
if (packageVersion("testthat") >= "1.0.2.9000") { # 2.0.0
testthat_args <- c(testthat_args, load_helpers = FALSE)
} else if (packageVersion("testthat") > "1.0.2") {
testthat_args <- c(testthat_args,
load_helpers = FALSE,
encoding = pkg$encoding %||% "unknown"
)
testthat_args <- c(testthat_args, load_helpers = FALSE)
}

withr::with_envvar(r_env_vars(),
Expand Down

0 comments on commit 99178f3

Please sign in to comment.