Skip to content

Commit

Permalink
Fix version check to match the ggplot2 hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Apr 2, 2019
1 parent e134fd9 commit ce40a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot-build.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit ce40a15

Please sign in to comment.