I can't View animation in Viewer panel

I was learning gganimate package.
I just created a anim object and runned it. But it is not showing in Viewer panel. instead in console it shows it had created frame by frame images of my animation in the folder.
My code is here:

p <-  ggplot(gapminder, aes(x = lifeExp, y = pop))+
  geom_point()


anim <- p+
  transition_states(country,
                    transition_length = 2,
                    state_length = 1)

i also tired saving it in gif format with anim_save() function gganimate and it shows an error like this:

> anim_save("anim1.gif",anim)
Error: The animation object does not specify a save_animation method               
In addition: Warning message:
file_renderer failed to copy frames to the destination directory 

I don't know what to do. please help me with this.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.