R/priority.R

Defines functions .normal .lowest .last .highest .first

Documented in .first .highest .last .lowest .normal

#' Event priority
#'
#' Preset event priorities: 1 = first (highest); 5 = normal; 10 = last (lowest).
#'
#' @return numeric of length 1.
#'
#' @author Alex Chubaty
#' @export
#' @name priority
#' @rdname priority
#'
.first <- function() {
  .highest()
}

#' @export
#' @rdname priority
.highest <- function() {
  return(1)
}

#' @export
#' @rdname priority
.last <- function() {
  .lowest()
}

#' @export
#' @rdname priority
.lowest <- function() {
  return(10)
}

#' @export
#' @include environment.R
#' @rdname priority
.normal <- function() {
  5
}

.pkgEnv$.normalVal <- .normal()
PredictiveEcology/SpaDES.core documentation built on April 17, 2024, 8:27 a.m.