Since R 3.0.0, package vignettes can use non-Sweave engines, and knitr
has provided a few engines to compile vignettes via
different templates. See https://yihui.name/knitr/demo/vignette/ for
If you use the
knitr::rmarkdown engine, please make sure that
you put rmarkdown in the Suggests field of your
‘DESCRIPTION’ file. Also make sure the executables
pandoc-citeproc can be found by rmarkdown during
R CMD build. If you build your package from RStudio, this is
normally not a problem. If you build the package outside RStudio, run
which pandoc and
which pandoc-citeproc in the terminal
R) to check if
pandoc-citeproc can be found.
If you use Linux, you may make symlinks to the Pandoc binaries in RStudio:
When the rmarkdown package is not installed or not available, or
pandoc-citeproc cannot be found, the
knitr::rmarkdown engine will fall back to the
engine, which uses R Markdown v1 based on the markdown package.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.