From ce40a1579f03a4f3e37830e0d4714b7e3c245acc Mon Sep 17 00:00:00 2001 From: Thomas Lin Pedersen Date: Tue, 2 Apr 2019 21:21:06 +0200 Subject: [PATCH] Fix version check to match the ggplot2 hotfix --- R/plot-build.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/plot-build.R b/R/plot-build.R index 7feea8d..720d404 100644 --- a/R/plot-build.R +++ b/R/plot-build.R @@ -31,7 +31,7 @@ ggplot_build.gganim <- function(plot) { # Allow all layers to make any final adjustments based # on raw input data and plot info data <- layer_data - if (packageVersion("ggplot2") > "3.1.0") { + if (packageVersion("ggplot2") > "3.1.1") { # ggplot2 versions 3.1.0 or earlier do not support `setup_layer()` data <- by_layer(function(l, d) l$setup_layer(d, plot)) }