knitr::opts_chunk$set( collapse = TRUE, eval = F, comment = "#>" )
This code is used to build, re-build, and trouble shoot the building of the package, including
These are mostly commands that can be launched from within RStudio via the GUI, except pkgdown::build_site()
library(devtools)
"This uses a fairly rudimentary algorithm where any files in ‘inst/doc’ with a name that exists in ‘vignettes’ are removed."
clean_vignettes()
"Builds package vignettes using the same algorithm that R CMD build does"
devtools::build_vignettes()
document()
devtools::document(roclets=c('rd', 'collate', 'namespace'))
devtools::load_all(".")
devtools::check()
check_failures
pkgdown::build_site()
"Clean and rebuild" ==> Rcmd.exe INSTALL --preclean --no-multiarch --with-keep.source mammalsmilk
"Install restart" ==> Rcmd.exe INSTALL --no-multiarch --with-keep.source mammalsmilk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.