build-pkg/build_n_check.R

# TODO:   Working script for testing the package 'taxlist'
# 
# Author: Miguel Alvarez
################################################################################

# Check
library(rmarkdown)
library(devtools)
library(styler)
library(covr)

# Automatic styling
style_pkg()

# document package
## unlink("NAMESPACE")
document()

# clean built package
unlink(file.path("build-pkg", list.files("build-pkg", ".tar.gz")))

# Build and check package
pkg_loc <- build(path = "build-pkg", args = "--resave-data")
check_built(path = pkg_loc)

# check coverage
report()

# Special steps ----------------------------------------------------------------
install()

# write manual
unlink(file.path("build-pkg", list.files("build-pkg", ".pdf")))
build_manual(path = "build-pkg")
ropensci/taxlist documentation built on Sept. 17, 2024, 3:39 p.m.