gganimate flashing dark green

When running this code gganimate flashes dark green. I'm not sure why. Any suggestions?


anim <- ggplot(mtcars, aes(mpg, disp)) +
  transition_states(gear, transition_length = 2, state_length = 1) +
  enter_fade() +
  exit_fade()

animate(anim)
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] magick_2.7.0    forcats_0.5.0   stringr_1.4.0   dplyr_1.0.3     purrr_0.3.4     readr_1.4.0    
 [7] tidyr_1.1.2     tibble_3.0.5    tidyverse_1.3.0 broom_0.7.2     sonify_0.0-1    tuneR_1.3.3    
[13] lattice_0.20-41 gganimate_1.0.7 ggplot2_3.3.3  

loaded via a namespace (and not attached):
 [1] progress_1.2.2    tidyselect_1.1.0  haven_2.3.1       colorspace_2.0-0  vctrs_0.3.6      
 [6] generics_0.1.0    utf8_1.1.4        rlang_0.4.10      pillar_1.4.7      glue_1.4.2       
[11] withr_2.4.1       DBI_1.1.0         tweenr_1.0.1      dbplyr_2.0.0      modelr_0.1.8     
[16] readxl_1.3.1      lifecycle_0.2.0   plyr_1.8.6        munsell_0.5.0     gtable_0.3.0     
[21] cellranger_1.1.0  rvest_0.3.6       labeling_0.4.2    fansi_0.4.2       gifski_0.8.7.1   
[26] Rcpp_1.0.6        scales_1.1.1      backports_1.2.0   jsonlite_1.7.2    farver_2.0.3     
[31] fs_1.5.0          hms_0.5.3         digest_0.6.27     stringi_1.5.3     grid_4.0.3       
[36] cli_2.2.0         tools_4.0.3       magrittr_2.0.1    crayon_1.3.4      pkgconfig_2.0.3  
[41] ellipsis_0.3.1    MASS_7.3-53       xml2_1.3.2        prettyunits_1.1.1 reprex_0.3.0     
[46] lubridate_1.7.9   assertthat_0.2.1  httr_1.4.2        rstudioapi_0.13   R6_2.5.0         
[51] signal_0.7-6      compiler_4.0.3   

Try updating the gifski package to 1.4.3 from CRAN.

Thanks for your response, but still blinks dark green. I'm not the only one that has this problem.

Updating gifski to the latest version has fixed the green flashing for myself and others. Did you restart the R session after the update? Going back from 0.8.7.1 to 0.8.6 was a temporary solution before 1.4.3 was released. Sorry I cannot be of more help.

When I restarted R it fixed some of the animations, so thanks!

I'm not sure why the one above does not animate, but I only used it as an example.

I think it needs a geom, otherwise it just shows the axes.