slow rendering of gganmiate in rmd?

I am trying to create a .rmd => .html file containing an animation.
Executing only the chunk containing gganimate takes a bit more than 20 seconds for the animation to appear in the viewer window.
When I try to knit the file to a html document, the rendering process is still pending after 10 minutes.
This happens when I use the very basic code provided by https://gganimate.com/articles/gganimate.html

Is this expected behavior? I am running the rmd in a clean RStudio session. Many thanks!

---
title: "R Notebook"
output:
  html_document:
    df_print: paged
---



```{r}
library(tidyverse)
library(gganimate)

ggplot(iris, aes(x = Petal.Width, y = Petal.Length)) +
  geom_point(aes(colour = Species)) +
  transition_states(Species,
                    transition_length = 2,
                    state_length = 1)



```

FWIW it works for me and take the same time in chunk or while rendering. Something may come from your rendering environment. You may try on RStudio Cloud to see if you can reproduce there.

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.