Skip to content

Commit

Permalink
Use string for version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Aug 22, 2023
1 parent f424146 commit b5057db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-external-generic.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test_that("displays nicely", {
test_that("new_method works with both hard and soft dependencies", {
# NB: Relies on installed S7

skip_if(getRversion() < 4.1 && Sys.info()[["sysname"]] == "Windows")
skip_if(getRversion() < "4.1" && Sys.info()[["sysname"]] == "Windows")
skip_if(quick_test())

tmp_lib <- tempfile()
Expand Down

0 comments on commit b5057db

Please sign in to comment.