If you are working on a Mac, then for me it was just necessary to use Homebrew in the terminal (if you donβt have homegrown or something like that, get it! ).
I installed ImageMagick and then I had to install the animation in R.
In terminal:
sudo brew install ImageMagick
... it installs several package dependencies and ends.
In the R console after that (in R, Rstudio, Emacs, ...):
install.packages("animation")
Now try ?gganimate and run the examples below to check it out!
The examples in the help file worked without problems for me. This works very well in Rstudio, Rstudio is written just like a web browser is under the hood. I personally use ESS in Emacs, which usually opens an X11 (or Quartz) window for building. However, using gg_animate opens the default browser and displays the output there.
source share