Skip to content

Instantly share code, notes, and snippets.

@jasdumas
Last active August 11, 2017 20:11
Show Gist options
  • Save jasdumas/972e243329927c22b587910efbe39cd2 to your computer and use it in GitHub Desktop.
Save jasdumas/972e243329927c22b587910efbe39cd2 to your computer and use it in GitHub Desktop.
Getting gganimate to work on Mac
  1. visit for intructions for other OS: https://www.imagemagick.org/script/download.php
  2. download: ImageMagick-x86_64-apple-darwin16.4.0.tar.gz from download button
  3. create (or choose) a directory to install the package into and change to that directory:

cd Desktop/R-directory

mkdir ImageMagick

cd ImageMagick/

  1. extract the contents of the package:

tar xvzf ImageMagick-x86_64-apple-darwin16.4.0.tar.gz

  1. export things:

export MAGICK_HOME="$HOME/Desktop/R-directory/ImageMagick/ImageMagick-7.0.5"

export PATH="$MAGICK_HOME/bin:$PATH"

export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"

  1. visit: https://www.xquartz.org/index.html and download latest version
  2. use installer as noramlly by double clicking on icon
  3. log out and log back in of current session to make the X11 the deafult
  4. export DISPLAY=:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment