I am trying to animate a sequence of plots in R Markdown but the video doesn't show up. Taking the advice from here I downloaded ffmpeg, but this still didn't get it to work.
I am using R version 3.2.0 and RStudio on OS X El Capitan. Here is my code:
---
title: "Animate"
author: "Thomas Bayes"
date: "February 2, 2016"
output: html_document
---
```{r animate, echo=FALSE, fig.show = 'animate'}
x <- seq(from = 0, to = 10, by = .5)
for(k in 1:5){
plot(x,sin(k*x), type = 'l')
}
```
And the output is just an empty video screen. Nothing happens when I click play.