I want to show a gif (that I created using gifski
) in a r-markdown html-report.
I have read several related questions on this topic and learned that this is the prefered method:
```{r, echo=FALSE, out.width = '100%'}
knitr::include_graphics("animation.gif", error = FALSE)
```
Therefore (and because other methods don't work any better) I'm using this method.
My problem is, that this doesn't always work. Sometimes is works as expected and sometimes (most often) it doesn't show the gif
. (It doen't show anything then, not a bad image box or something - nothing.)
If I try with an otherwise empty notebook, it works.
I also tried these methods:

and
<img src="animation.gif"/>
The gif
is in the same folder as the .Rmd
It doesn't help, if I add a \ before the path.
Thank you for your advice.