Skip to content

Commit f19c3cb

Browse files
lionel-hadley
authored andcommitted
Fix CI builds (#2561)
* Reenable 3.1 builds * Install vdiffr manually on Travis
1 parent d3bd92e commit f19c3cb

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ addons:
99
- libfreetype6
1010

1111
r:
12-
# - 3.1 # because of tidyr <- tidyselect
12+
- 3.1
1313
- 3.2
1414
- oldrel
1515
- release
@@ -18,6 +18,9 @@ r:
1818
# work around temporary travis + R 3.5 bug
1919
r_packages: devtools
2020

21+
# Install manually because dev vdiffr is not compatible with Appveyor yet
22+
r_github_packages: lionel-/vdiffr
23+
2124
env:
2225
global:
2326
- _R_CHECK_FORCE_SUGGESTS_=false

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Suggests:
4545
munsell,
4646
nlme,
4747
testthat (>= 0.11.0),
48-
vdiffr (>= 0.2.3.9000),
48+
vdiffr,
4949
quantreg,
5050
knitr,
5151
rgeos,
@@ -54,7 +54,6 @@ Suggests:
5454
sf (>= 0.3-4),
5555
svglite (>= 1.2.0.9001)
5656
Remotes:
57-
lionel-/vdiffr,
5857
hadley/scales,
5958
r-lib/rlang
6059
Enhances: sp

tests/testthat/helper-vdiffr.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11

22
enable_vdiffr <- TRUE
33

4+
if (!requireNamespace("vdiffr", quietly = TRUE) ||
5+
utils::packageVersion("vdiffr") < "0.2.3.9000") {
6+
enable_vdiffr <- FALSE
7+
}
8+
49
expect_doppelganger <- function(title, fig,
510
path = NULL,
611
...,

0 commit comments

Comments
 (0)