knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  warning = F,
  message = F
)

Introduction

This code is used to build, re-build, and trouble shoot the building of the package, including

  1. Building/compiling diffrent components
  2. Building the pkgdown website

These are mostly commands that can be launched from within RStudio via the GUI, except pkgdown::build_site()

devtools functions

Clean vignettes

"This uses a fairly rudimentary algorithm where any files in ‘inst/doc’ with a name that exists in ‘vignettes’ are removed."

devtools::clean_vignettes() 

Build vignettes

"Builds package vignettes using the same algorithm that R CMD build does"

devtools::build_vignettes()

Build documentation

document()

devtools::document(roclets=c('rd', 'collate', 'namespace'))

Load all

devtools::load_all(".")

Check

devtools::check()

check_failures

pckgdown functions

Build package down website

pkgdown::build_site()

Rcmd.exe

"Clean and rebuild" ==> Rcmd.exe INSTALL --preclean --no-multiarch --with-keep.source mammalsmilk

"Install restart" ==> Rcmd.exe INSTALL --no-multiarch --with-keep.source mammalsmilk



brouwern/mammalsmilkRA documentation built on May 3, 2019, 7:39 p.m.