R/Update.R

Defines functions updatePackage

Documented in updatePackage

#' @title Update the statsBordeaux package
#' @description Update the statsBordeaux package
#' @param force a boolean vector of length one. If TRUE, force installation, even if the
#' remote state has not changed since the previous install. Default to FALSE
#' @export
#' @import devtools
#' @examples
#' updateStatsBordeaux()
updatePackage <- function(force = FALSE){
  if(!is.vector(force) | !is.logical(force) | length(force) != 1){
    stop("force must be a boolean vector of length one.")
  }
  devtools::install_github("rgriffier/statsBordeaux", force = force)
}
rgriffier/statsBordeaux documentation built on Aug. 11, 2021, 9:59 a.m.