Skip to content

Commit

Permalink
Skip a test on Windows, on older R
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Mar 17, 2024
1 parent 1460100 commit aef840b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/testthat/test-install-github.R
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ test_that("github_remote with deleted branch", {

test_that("github_pull", {

if (getRversions() < "4.0.0" && .Platform$OS.type == "windows") {
skip("Does not work on older R on Windows") # why?
}
skip_on_cran()
skip_if_offline()
skip_if_over_rate_limit()
Expand All @@ -202,12 +205,12 @@ test_that("github_pull", {
on.exit(unlink(lib, recursive = TRUE), add = TRUE)
dir.create(lib)

install_github(
suppressWarnings(install_github(
"r-lib/desc",
ref = github_pull(64),
lib = lib,
quiet = TRUE
)
))

expect_silent(packageDescription("desc", lib.loc = lib))
expect_equal(
Expand Down

0 comments on commit aef840b

Please sign in to comment.