Install package imager in ubuntu or MacOSX (with imagemagick library)
In terminal:
sudo apt-get update -y
sudo apt-get install -y fftw3
In R
install.packages("imager")
More infos here:
http://dahtah.github.io/imager/
In MacOSX:
brew install imagemagick ffmpeg
Note:
imagemagick@6 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have imagemagick@6 first in your PATH, run:
echo 'export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"' >> ~/.zshrc
For compilers to find imagemagick@6 you may need to set:
export LDFLAGS="-L/usr/local/opt/imagemagick@6/lib"
export CPPFLAGS="-I/usr/local/opt/imagemagick@6/include"
For pkg-config to find imagemagick@6 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/imagemagick@6/lib/pkgconfig"
Commentaires
Enregistrer un commentaire