Compile all Rmd files and build the site through Hugo.
Whether to build the website locally to be served via
Different methods to build a website (each with pros and cons).
See Details. The value of this argument will be obtained from the global
Whether to run
You can use
serve_site() to preview your website locally, and
build_site() to build the site for publishing.
method = "html" means to render all
Rmd files to HTML via
means Markdown is processed through Pandoc), and process the paths of
external dependencies generated from R code chunks, including images and HTML
For all rendering methods, a custom R script ‘R/build.R’ will be
executed if you have provided it under the root directory of the website
(e.g. you can compile Rmd to Markdown through
knitr::knit() and build the side via
method = "custom" means it is entirely up
to this R script how a website is rendered. The script is executed via
Rscript "R/build.R", which means it is executed in a
separate R session. The value of the argument
local is passed to the
command line (you can retrieve the command-line arguments via
This function recompiles all R Markdown files by default, even if the
output files are newer than the source files. If you want to build the site
without rebuilding all R Markdown files, you should use
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.