parse_mooc_rmd: Parse and compile an Rmd

Description Usage Arguments

View source: R/parse_rmd.R

Description

Parse and compile an Rmd

Usage

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)

Arguments

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.


skranz/miniMOOC documentation built on May 2, 2020, 1:24 p.m.