R/is_installed.R

Defines functions is_installed_catboost is_installed_lightgbm is_installed_xgboost

Documented in is_installed_catboost is_installed_lightgbm is_installed_xgboost

#' Is xgboost installed?
#'
#' @return `TRUE` if installed, `FALSE` if not.
#'
#' @export
#'
#' @examples
#' is_installed_xgboost()
is_installed_xgboost <- function() {
  rlang::is_installed("xgboost")
}

#' Is lightgbm installed?
#'
#' @return `TRUE` if installed, `FALSE` if not.
#'
#' @export
#'
#' @examples
#' is_installed_lightgbm()
is_installed_lightgbm <- function() {
  rlang::is_installed("lightgbm")
}

#' Is catboost installed?
#'
#' @return `TRUE` if installed, `FALSE` if not.
#'
#' @export
#'
#' @examples
#' is_installed_catboost()
is_installed_catboost <- function() {
  rlang::is_installed("catboost")
}

Try the stackgbm package in your browser

Any scripts or data that you put into this service are public.

stackgbm documentation built on May 29, 2024, 3:55 a.m.