R/is_mhcnuggets_options.R

Defines functions is_mhcnuggets_options

Documented in is_mhcnuggets_options

#' Is this a \code{mhcnuggets_options}?
#'
#' Determine if the MHCnuggets options is valid.
#' @inheritParams default_params_doc
#' @return TRUE if this a valid set of MHCnuggets options
#' @examples
#' if (is_mhcnuggets_installed()) {
#'   is_mhcnuggets_options(create_test_mhcnuggets_options())
#' }
#' @author Richèl J.C. Bilderbeek
#' @export
is_mhcnuggets_options <- function(
  mhcnuggets_options
) {
  is <- FALSE
  tryCatch({
      mhcnuggetsr::check_mhcnuggets_options(mhcnuggets_options)
      is <- TRUE
    },
    error = function(e) {} # nolint indeed ignore
  )
  is
}
richelbilderbeek/mhcnuggetsr documentation built on Nov. 9, 2023, 10 p.m.