-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
too-small interval gives puzzling error #123
Comments
Hi, This problem is introduced by the Magick package. You can avoid this problem by using the ImageMagick convert function. First of all, please make sure you installed ImageMagick library(animation)
nn = 720L
saveGIF({for (ii in 1:nn) plot(runif(10), ylim = 0:1)},
interval = 5/nn,
convert="convert")
|
I was trying to plot many frames and target the output to be a certain length (5 seconds):
This then failed:
Quite strange. However, the stack trace gives a lot clearer understanding:
In particular:
Will give
Inf
sinceinterval < 1/100
soas.integer
will truncate to 0.It would be helpful if this were pointed out sooner
The text was updated successfully, but these errors were encountered: