R/checks.R

Defines functions checkNumericMutatorArguments

checkNumericMutatorArguments = function(ind, lower, upper, op.name) {
  checkmate::assertNumeric(ind, min.len = 1L, any.missing = FALSE, all.missing = FALSE)
  n = length(ind)
  checkmate::assertNumeric(lower, any.missing = FALSE, all.missing = FALSE)
  checkmate::assertNumeric(upper, any.missing = FALSE, all.missing = FALSE)
  if ((length(lower) != n) | (length(upper) != n))
    BBmisc::stopf("[ecr::%s] Arguments lower and upper need to have as many components as the individual.", op.name)
}

Try the ecr package in your browser

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

ecr documentation built on March 31, 2023, 10:07 p.m.