R/update_tntpr.R

Defines functions update_tntpr

Documented in update_tntpr

#' @title Re-install the tntpr package from GitHub.
#' @export
#' @returns nothing
#' @examplesIf interactive()
#' # Run without loading tntpr first
#' tntpr::update_tntpr()
#'

update_tntpr <- function() {
  if (!requireNamespace("devtools", quietly = TRUE)) {
    stop(
      "Package \"devtools\" must be installed to use this function.",
      call. = FALSE
    )
  }

  devtools::install_github("tntp/tntpr")
}
tntp/tntpr documentation built on March 27, 2024, 6:26 p.m.