R/pedigree_utilities.R

Defines functions clean_build_install

Documented in clean_build_install

###
###
###
###   Purpose:   collection of utility functions
###   started:   2017-12-06 (pvr)
###
### ############################################## ###

#' @title Cleanup, build vignettes, documents and install
#'
#' @importFrom devtools clean_vignettes
#' @importFrom devtools build_vignettes
#' @importFrom devtools document
#' @importFrom devtools install
#'
#' @description
#' Simple utility to clean up old vignette output,
#' to build vignettes for the current package, to
#' roxygenize all help-texts and to install the
#' new version of the package given by pkg.
#'
#' @param pkg package directory
#' @export clean_build_install
clean_build_install <- function(pkg = "."){
  devtools::clean_vignettes(pkg = pkg)
  devtools::build_vignettes(pkg = pkg)
  devtools::document(pkg = pkg)
  devtools::install(pkg = pkg)

  return((invisible(TRUE)))
}
pvrqualitasag/PedigreeFromTvdData documentation built on Feb. 16, 2018, 2:20 a.m.