error in saveGIF command in animation package

前端 未结 3 426
天涯浪人
天涯浪人 2020-12-21 22:18

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),         


        
相关标签:
3条回答
  • 2020-12-21 22:41

    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.

    0 讨论(0)
  • 2020-12-21 23:03

    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\')

    0 讨论(0)
  • 2020-12-21 23:05

    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.

    0 讨论(0)
提交回复
热议问题