build-pkg/build_n_check.R

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

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

# Automatic styling
style_pkg()

# document package
document()

# clean built package and manual
Folder <- "build-pkg"
Files <- list.files(Folder, ".tar.gz|.pdf")
unlink(file.path(Folder, Files))

# Re-build package and manual
pkg_loc <- build(path = Folder, args = "--resave-data")
## build_manual(path = Folder)

# common check
check_built(path = pkg_loc)

# Special steps ----------------------------------------------------------------
install()
build_manual(path = Folder)
kamapu/yamlme documentation built on June 29, 2024, 9:17 p.m.