Closed stla closed 5 years ago
Hi @stla, It is better to provide an example to help us to reproduce the bug. After we reproduce the bug, I think you could send a pull request to this repo based on your solution. I will check it within 24 hours.
Hi @yulijia ,
Here is a reproducible example:
library(animation)
saveGIF(
{
for(i in 1:2){
plot(0, 0)
}
},
convert = "convert",
movie.name = "bug.gif",
interval = 0.05, ani.width = 500, ani.height = 500,
ani.dev = function(...) png(bg = "transparent", ...)
)
Hi @stla , Thank you for providing this helpful example. I made a little change on your code to make sure I could see the dot move on a GIF file.
library(animation)
saveGIF(
{
for(i in 1:10){
plot(i,0)
}
},
convert = "convert",
movie.name = "bug.gif",
interval = 0.05, ani.width = 500, ani.height = 500,
ani.dev = function(...) png(bg = "transparent", ...)
)
Please send a pull request based on your solution. We appreciate your long term support on this package.
Many thanks, Lijia
Hello,
If the option
ani.dev
is set to a function then there's a bug insaveGIF
:The error is generated by
grepl
:Possible fix: