R/hasForbidden.R

Defines functions hasForbidden

Documented in hasForbidden

#' Check parameter set for forbidden region.
#'
#' @template arg_parset
#' @return `logical(1)`.
#' @export
hasForbidden = function(par.set) {
  assertClass(par.set, "ParamSet")
  return(!is.null(par.set$forbidden))
}

Try the ParamHelpers package in your browser

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

ParamHelpers documentation built on July 4, 2022, 5:07 p.m.