Skip to content

Commit 381d9bd

Browse files
authored
Remove `packageVersion("base") from tests (#6628)
Fixes #6588
1 parent 961b194 commit 381d9bd

File tree

5 files changed

+0
-7
lines changed

5 files changed

+0
-7
lines changed

tests/testthat/test-annotate.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ test_that("segment annotations transform with scales", {
3030

3131
test_that("annotation_* has dummy data assigned and don't inherit aes", {
3232
skip_if_not_installed("maps")
33-
skip_if(packageVersion("base") < "3.5.0")
3433
custom <- annotation_custom(zeroGrob())
3534
logtick <- annotation_logticks()
3635
usamap <- map_data("state")

tests/testthat/test-coord-map.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
test_that("USA state map drawn", {
22
skip_if_not_installed("mapproj") # required for coord_map()
33
skip_if_not_installed("maps") # required for map_data()
4-
skip_if(packageVersion("base") < "3.5.0")
54
us_map <- map_data("usa")
65
p_us <- ggplot(us_map, aes(x = long, y = lat, group = group))
76
expect_doppelganger(
@@ -15,7 +14,6 @@ test_that("USA state map drawn", {
1514
test_that("coord_map scale position can be switched", {
1615
skip_if_not_installed("mapproj") # required for coord_map()
1716
skip_if_not_installed("maps") # required for map_data()
18-
skip_if(packageVersion("base") < "3.5.0")
1917
us_map <- map_data("usa")
2018
p_us <- ggplot(us_map, aes(x = long, y = lat, group = group))
2119
expect_doppelganger(
@@ -31,7 +29,6 @@ test_that("coord_map scale position can be switched", {
3129
test_that("Inf is squished to range", {
3230
skip_if_not_installed("mapproj") # required for coord_map()
3331
skip_if_not_installed("maps") # required for mproject()
34-
skip_if(packageVersion("base") < "3.5.0")
3532
d <- cdata(
3633
ggplot(data_frame(x = 0, y = 0)) +
3734
geom_point(aes(x,y)) +

tests/testthat/test-geom-hline-vline-abline.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ test_that("check h/v/abline transformed on basic projections", {
2828
test_that("curved lines in map projections", {
2929
skip_if_not_installed("mapproj") # required for coord_map()
3030
skip_if_not_installed("maps") # required for map_data()
31-
skip_if(packageVersion("base") < "3.5.0")
3231
nz <- subset(map_data("nz"), region == "North.Island ")
3332
nzmap <- ggplot(nz, aes(long, lat, group = group)) +
3433
geom_path() +

tests/testthat/test-geom-quantile.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
test_that("geom_quantile matches quantile regression", {
2-
skip_if(packageVersion("base") < "3.6.0") # warnPartialMatchArgs didn't accept FALSE
32
withr::local_options(
43
warnPartialMatchArgs = FALSE,
54
warnPartialMatchDollar = FALSE

tests/testthat/test-geom-smooth.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ test_that("geom_smooth works in both directions", {
2424
})
2525

2626
test_that("default smoothing methods for small and large data sets work", {
27-
skip_if(packageVersion("base") < "3.6.0") # warnPartialMatchArgs didn't accept FALSE
2827
withr::local_options(warnPartialMatchArgs = FALSE)
2928
# Numeric differences on the MLK machine on CRAN makes these test fail
3029
# on that particular machine

0 commit comments

Comments
 (0)