I\'m trying to use for the first time animation
package in R.
I\'m using this simple code:
saveGIF({
for (i in 1:10) plot(runif(10),
After attempting all of these fixes as well as these and these to no success, I used alternative software to make the conversion from the png files that were successfully created with saveHTML
. Several programs are described here. I am a Windows user and found the simple instructions contained in that site for VirtualDub quickly accomplished this task.
R cannot find the convert executable. You have to specify it's full path and name using ani.option()
ani.options(convert = 'C:\\Program Files\\ImageMagick-6.9.0-Q16\\convert.exe')
(You may have to modify the 'C:\Program Files\ImageMagick-6.9.0-Q16\')
I just ran into the same issue -- make sure your download of image magick includes the convert executable (convert.exe). I noticed that it wasn't included when I installed everything the first time and then after uninstalling and reinstalling, I noticed there was an unchecked option for "include legacy tools (convert)" or something to that effect. Make sure to click that box on install. Also, note that it seems to work better when you run R or RStudio as administrator.