Skip to content

Commit 2bc70d9

Browse files
committed
Please check
1 parent d8e6fe3 commit 2bc70d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/gifski.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ save_gif <- function(expr, gif_file = 'animation.gif', width = 800, height = 600
7171
filename <- file.path(imgdir, "tmpimg_%05d.png")
7272
grDevices::png(filename, width = width, height = height, ...)
7373
graphics::par(ask = FALSE)
74-
tryCatch(eval(expr), finally = dev.off())
74+
tryCatch(eval(expr), finally = grDevices::dev.off())
7575
images <- list.files(imgdir, pattern = 'tmpimg_\\d{5}.png', full.names = TRUE)
7676
gifski(images, gif_file = gif_file, width = width, height = height, delay = delay, loop = loop, progress = progress)
7777
}

0 commit comments

Comments
 (0)