library(knitr) if (packageVersion('knitr') < '1.20.14') { remotes::install_github('yihui/knitr') } library(gifski) opts_chunk$set(echo = TRUE, message = TRUE, warnings = TRUE) # load_all()
Trying gifski knitr example from https://yihui.name/en/2018/08/gifski-knitr/ .
for (i in 1:2) { pie(c(i %% 2, 6), col = c('red', 'yellow'), labels = NA) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.