pkg_build.R

# cleanup
rm(list=ls()); gc(); cat("\014"); try(dev.off(), silent=T);

# working directory
setwd(dirname(rstudioapi::getSourceEditorContext()$path))

# package documentation
devtools::document()

# restart R
rstudioapi::restartSession()

# install from source
install.packages(getwd(), repo=NULL, type='source')

# load
library(wpCPR)

# check citation
citation('wpCPR')
wpgp/wpCPR documentation built on April 2, 2021, 9:49 a.m.