I am running the main gganimate example that renders an animated plot into a pdf document.
---
title: "PDF Animation Test"
output:
pdf_document: default
header-includes: \usepackage{animate}
---
`gganimate` now supports animations inside PDF documents. This feature is only
viewable with Acrobat Reader, however. Remember to include
`\usepackage{animate}` in the preamble and set `fig.show='animate'` in the chunk
options. Further, the framerate is governed by `interval`rather than any
`gganimate`
```{r, fig.show='animate', interval=1/10}
library(gganimate)
ggplot(airquality, aes(Day, Temp, group = Month)) +
geom_line() +
transition_reveal(Month)
Unfortunately, I am getting the following error:
label: unnamed-chunk-1 (with options)
List of 2
$ fig.show: chr "animate"
$ interval: language 1/10
I am running the main gganimate example that renders an animated plot into a pdf document.
Unfortunately, I am getting the following error:
label: unnamed-chunk-1 (with options) List of 2 $ fig.show: chr "animate" $ interval: language 1/10
processing file: pdf.Rmd executing: ffmpeg -y -r 10 -i pdf_files/figure-html/unnamed-chunk-1-%d.gif -b:v 1M -crf 10 pdf_files/figure-html/unnamed-chunk-1.webm
/usr/lib/rstudio/bin/pandoc/pandoc +RTS -K512m -RTS pdf.utf8.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output pdf.html --email-obfuscation none --self-contained --standalone --section-divs --template /home/manolo/R/x86_64-pc-linux-gnu-library/4.0/rmarkdown/rmd/h/default.html --no-highlight --variable highlightjs=1 --variable 'theme:bootstrap' --include-in-header /tmp/Rtmp8AGRpp/rmarkdown-str39681ce56ba1.html --mathjax --variable 'mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --lua-filter /home/manolo/R/x86_64-pc-linux-gnu-library/4.0/rmarkdown/rmd/lua/pagebreak.lua --lua-filter /home/manolo/R/x86_64-pc-linux-gnu-library/4.0/rmarkdown/rmd/lua/latex-div.lua ffmpeg version N-98534-g5eb4405 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/home/manolo/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/manolo/ffmpeg_build/include --extra-ldflags=-L/home/manolo/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/manolo/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree libavutil 56. 56.100 / 56. 56.100 libavcodec 58. 97.100 / 58. 97.100 libavformat 58. 49.100 / 58. 49.100 libavdevice 58. 11.101 / 58. 11.101 libavfilter 7. 87.100 / 7. 87.100 libswscale 5. 8.100 / 5. 8.100 libswresample 3. 8.100 / 3. 8.100 libpostproc 55. 8.100 / 55. 8.100 pdf_files/figure-html/unnamed-chunk-1-%d.gif: No such file or directory output file: pdf.knit.md
File pdf_files/figure-html/unnamed-chunk-1.webm not found in resource path Error: pandoc document conversion failed with error 99 Execution halted
My R sessionInfo() is: