R/is_mhcnuggets_installed.R

Defines functions is_mhcnuggets_installed

Documented in is_mhcnuggets_installed

#' Check if MHCnuggets is installed
#' @inheritParams default_params_doc
#' @return TRUE if MHCnuggets is installed
#' @author Richèl J.C. Bilderbeek
#' @examples
#' is_mhcnuggets_installed()
#' @export
is_mhcnuggets_installed <- function(
  mhcnuggetsr_folder = get_default_mhcnuggetsr_folder()
) {
  is_installed <- FALSE
  tryCatch({
      mhcnuggetsr::check_mhcnuggets_installation(
        mhcnuggetsr_folder = mhcnuggetsr_folder
      )
      is_installed <- TRUE
    },
    error = function(e) {} # nolint no need to inspect e

  )
  is_installed
}
richelbilderbeek/mhcnuggetsr documentation built on Nov. 9, 2023, 10 p.m.