message("Moving into the vignettes directory")
setwd("vignettes")
message("Rendering output to all formats")
## Render to analysis to required output formats
rmarkdown::render("output.Rmd",
output_dir = "rendered_output",
knit_root_dir = c("."),
output_format = c("html_document"))
rmarkdown::render("output.Rmd",
output_dir = "rendered_output",
knit_root_dir = c("."),
output_format = c("pdf_document"))
rmarkdown::render("output.Rmd",
output_dir = "rendered_output",
knit_root_dir = c("."),
output_format = c("word_document"))
rmarkdown::render("output.Rmd",
output_dir = ".",
knit_root_dir = c("."),
output_format = c("md_document"))
message("Moving back into top level directory")
setwd("..")
message("Building all website docs")
## Make package website docs
pkgdown::build_site()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.