[R] ImageMagick not seen by movie3d function from rgl package --SOLVED
murdoch at stats.uwo.ca
Thu Oct 15 19:05:28 CEST 2009
On 10/15/2009 1:01 PM, eugen pircalabelu wrote:
> 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!
Yes, R is given a copy of the PATH when it starts, and updates to the
PATH are not seen until you restart it.
> ----- 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()
>> 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!
>> R version 2.9.1 (2009-06-26) i386-pc-mingw32
>> 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:
>>  tcltk stats graphics grDevices utils datasets methods base
>> other attached packages:
>>  caTools_1.10 bitops_1.0-4.1 rgl_0.87 Rcmdr_1.5-3 car_1.2-16 scatterplot3d_0.3-28
>>  MASS_7.2-47 mgcv_1.5-5 lattice_0.17-25 foreign_0.8-36
>> loaded via a namespace (and not attached):
>>  grid_2.9.1 nlme_3.1-92 tools_2.9.1
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> R-help at r-project.org mailing list
> 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