[R] ImageMagick not seen by movie3d function from rgl package --SOLVED

eugen pircalabelu eugen_pircalabelu at yahoo.com
Thu Oct 15 19:01:59 CEST 2009

Thank you Duncan!
Actually Sys.getenv("PATH") said the same thing: ImageMagick is in my path (and convert.exe is where it is supposed to be), but after i opened R (to see the actual path in R, as you said), loaded rgl, and run again the example, it worked. 
I guess that after the software installation, I should have loaded rgl package again in R.
So now it works! 
Thank you once again!


----- Original Message ----
From: Duncan Murdoch <murdoch at stats.uwo.ca>
To: eugen pircalabelu <eugen_pircalabelu at yahoo.com>
Cc: R-help <r-help at stat.math.ethz.ch>
Sent: Thu, October 15, 2009 6:31:58 PM
Subject: Re: [R] ImageMagick not seen by movie3d function from rgl package

On 10/15/2009 12:01 PM, eugen pircalabelu wrote:
> Hello R-users,
> I have downloaded and installed a binary version for Windows OS of ImageMagick (ImageMagick6.5.6-10-q16-windows-dll.exe), I have installed the rgl package and i've tried  running the following example from ?movie3d()
> library(rgl)
>  open3d()
>  plot3d( cube3d(col="green") )
>  M <- par3d("userMatrix")
>  play3d( par3dinterp( userMatrix=list(M,
>                                       rotate3d(M, pi/2, 1, 0, 0),
>                                       rotate3d(M, pi/2, 0, 1, 0) ) ),          duration=4 )
> movie3d( spin3d(), duration=5 )
> and then I get the following message: 
> Writing movie050.png Error in movie3d(spin3d(), duration = 5) : ImageMagick not found
> which if I am correct means that R can not see ImageMagick (i have in the ImageMagick in the path variable: C:\Program Files\ImageMagick-6.5.6-Q16;;%GTK_BASEPATH%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\jEdit)
> I have found some earlier post with apparently  the same problem, but no solution.
> Can anyone tell me what i am doing wrong?

Likely it's not really in your path.  Use Sys.getenv("PATH") to see what R sees as your path.  It certainly won't look like what you just posted:  those % variables will be expanded, for instance.

If C:\Program Files\ImageMagick-6.5.6-Q16 is on your real path, then go to that folder, and make sure the executable "convert.exe" is there. That's what rgl is looking for.

Duncan Murdoch

> Thank you very much and have a great day ahead!
>> sessionInfo()
> R version 2.9.1 (2009-06-26) i386-pc-mingw32 
> locale:
> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
> attached base packages:
> [1] tcltk     stats     graphics  grDevices utils     datasets  methods   base    
> other attached packages:
>  [1] caTools_1.10         bitops_1.0-4.1       rgl_0.87             Rcmdr_1.5-3          car_1.2-16           scatterplot3d_0.3-28
>  [7] MASS_7.2-47          mgcv_1.5-5           lattice_0.17-25      foreign_0.8-36      
> loaded via a namespace (and not attached):
> [1] grid_2.9.1  nlme_3.1-92 tools_2.9.1
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list