Parse and compile an Rmd
1 2 3 | parse_mooc_rmd(file, chunks = c("knit", "render", "ignore")[1],
youtube.width = 560, youtube.height = round((315/560) * youtube.width),
lang = "en", left.margin = 1, right.margin = left.margin)
|
file |
Rmd file path. |
chunks |
what shall be done with R code chunks. By default "knit", the other option "render" allows some alternative behavior not yet well documented. |
youtube.width |
default width of included youtube iframes. By default 560 you can also set 720. |
youtube.height |
default height of included youtube iframes. By default keeps Google's proposed aspect ratio to width. |
lang |
default language for quiz messages. Currently only "en" english and "de" German supported. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.