First any existing output of vignettes in pkg/inst/doc is removed
using devtools::clean_vignettes
. Then vignettes are built
using devtools::build_vignettes
. In the last step, the result
is deployed to a given target directory using deploy_website
.
1 2 | build_deploy_website(pkg = ".", psFrom = file.path(pkg, "vignettes",
"index.Rmd"), psToDir = ".")
|
pkg |
package directory where vignette sources are stored |
psFrom |
directory where vignette source is stored |
psToDir |
target directory to where vigette is deployed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.