#!/usr/bin/env Rscript
# This is a convenience script for when I'm developing the package. The main
# issue is that building the package in RStudio (Ctrl+Shift+B) or documenting
# the package (Ctrl+Shift+D) builds the vignettes and pollutes `vignettes/` with
# the generated `*R` and `*html` files instead of putting them in `inst/doc/`.
# This script ensures the documentation is up-to-date and also removes
# unnecessary files.
stopifnot(file.exists("workflowr.Rproj"))
devtools::document()
devtools::clean_vignettes(); devtools::build_vignettes(); devtools::clean_vignettes()
devtools::install(dependencies = FALSE)
unlink("docs/articles/*R")
pkgdown::build_site()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.