Description Usage Arguments Value Examples
knitr your Rmd file with className = "language-r"
1 | knitr4blog(fileName, className = "r", ...)
|
fileName |
A name of your Rmd file |
className |
A className that your R code class to be |
... |
you can use other options for rmarkdown::render such as encoding option |
kniting your Rmd file
1 2 | # fileName should not have blank space
# knitr4blog("abc.Rmd")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.