Skip to content

Commit c1842a7

Browse files
committed
Bump SVG engine to 1.0
1 parent 4832ed5 commit c1842a7

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

R/utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ is_vdiffr_stale <- function() {
155155
}
156156
deps <- readLines(deps_file)
157157

158-
ver <- purrr::detect(deps, function(dep) grepl("^vdiffr-svg-engine: ", dep))
158+
ver <- purrr::detect(deps, function(dep) grepl("^- vdiffr-svg-engine: ", dep))
159159
if (is_null(ver)) {
160160
return(TRUE)
161161
}
162162

163-
ver <- substr(ver, nchar("vdiffr-svg-engine") + 3, nchar(ver))
163+
ver <- substr(ver, nchar("- vdiffr-svg-engine: ") + 1, nchar(ver))
164164
ver <- base::package_version(ver)
165165
current <- base::package_version(SVG_ENGINE_VER)
166166

R/vdiffr.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"_PACKAGE"
88

99
.onLoad <- function(lib, pkg) {
10-
if (!requireNamespace("freetypeharfbuzz", quietly = TRUE)) {
10+
if (!is_installed("freetypeharfbuzz")) {
1111
abort("The package `freetypeharfbuzz` is not installed")
1212
}
1313
library_load()
1414
}
1515

16-
SVG_ENGINE_VER <- "0.9000"
16+
SVG_ENGINE_VER <- "1.0"
1717

1818
svg_engine_ver <- function() {
1919
as.numeric_version(SVG_ENGINE_VER)

tests/mock.Rout.fail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Environment:
2-
- vdiffr-svg-engine: 0.9000
2+
- vdiffr-svg-engine: 1.0
33
- vdiffr: 0.3.0
44
- freetypeharfbuzz: 0.2.5
55

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
ggplot2: 3.0.0
2-
vdiffr-svg-engine: 0.9000
1+
- vdiffr-svg-engine: 1.0
2+
- vdiffr: 0.3.0
3+
- freetypeharfbuzz: 0.2.5

0 commit comments

Comments
 (0)