## recompile vignette setwd("vignettes") library(knitr) knitr::knit("apex.Rmd", output = "apex.md") setwd("../")
## read md of the vignette mdInput <- readLines("vignettes/apex.md") ## remove vignette-specific headers toRemove <- 1:10 mdInput <- mdInput[-toRemove] ## restore right path for figures mdInput <- gsub("figs/","vignettes/figs/",mdInput) cat(paste(mdInput,collapse="\n"), file = "README.md")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.