library(wiritttes)
library(rmarkdown)
tryCatch(
rmarkdown::render("../vignettes/analyse_time.Rmd", output_file = "~/analyse_time.html"),
error = function(msg) { message(msg) }
)
tryCatch(
system("pandoc ~/analyse_time.html -o analyse_time.pdf"),
error = function(msg) { message(msg) }
)
warnings()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.