Skip to content

Commit

Permalink
Tests: test that cairo is the default in png() etc.
Browse files Browse the repository at this point in the history
Closes #15.
gaborcsardi committed Dec 17, 2024
1 parent b692c24 commit 88b0d3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test-cairo.R
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ R.home()
# -------------------------------------------------------------------------

tmp <- tempfile(fileext = ".png")
png(tmp, type = "cairo")
png(tmp)
plot(1:10)
dev.off()

@@ -14,7 +14,7 @@ stopifnot(grepl("PNG", out))
# -------------------------------------------------------------------------

tmp <- tempfile(fileext = "jpg")
jpeg(tmp, type = "cairo")
jpeg(tmp)
plot(1:10)
dev.off()

@@ -25,7 +25,7 @@ stopifnot(grepl("JPEG", out))
# -------------------------------------------------------------------------

tmp <- tempfile(fileext = "tiff")
tiff(tmp, type = "cairo")
tiff(tmp)
plot(1:10)
dev.off()

0 comments on commit 88b0d3f

Please sign in to comment.