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()

Try the SpaDES.core package in your browser

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

SpaDES.core documentation built on Nov. 10, 2023, 5:08 p.m.