#' Render Rmd in script
#'
#' @param file file name
#' @param ... optional arguments passed on to source
#'
#' @export
#'
source.rmd <- function(file, ...) {
library(knitr)
source(purl(file, output = tempfile()), ...)
print("Done")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.