Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick in R

I want to use ImageMagick in R, but R won't let me install it.

install.packages("ImageMagick")
Installing package into ‘C:/Users/FSFH-2/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
Warning message:
package ‘ImageMagick’ is not available (for R version 3.0.1) 

I'm under the impression that I have the latest version of R, so what's going on here?

Additionally, I downloaded ImageMagick into windows, but I can't figure out how to get it into R. Help!

like image 859
user2550487 Avatar asked Jul 10 '13 11:07

user2550487


People also ask

Can R do image processing?

2021-08-18. The magick package provide a modern and simple toolkit for image processing in R. It wraps the ImageMagick STL which is the most comprehensive open-source image processing library available today.

What is ImageMagick package?

Use ImageMagick® to create, edit, compose, or convert digital images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, WebP, HEIC, SVG, PDF, DPX, EXR and TIFF.

What is Magick?

Magick++ is the object-oriented C++ API to the ImageMagick image-processing library, the most comprehensive open-source image processing package available. Read the latest NEWS and ChangeLog for Magick++. Magick++ supports an object model which is inspired by PerlMagick.


1 Answers

you need to install a package named "installr" prior to installing ImageMagick.

Simple Steps:

  1. Tools->InstallPackages->installr
  2. From R command Line write
    • require(installr)
    • install.ImageMagick() (This command will by default install the latest version, u can specify the URl of the version needed)

The package will be installed !!!

like image 109
Jimmy Avatar answered Oct 02 '22 15:10

Jimmy