R/isTopJob.R

Defines functions isTopJob

Documented in isTopJob

#' is this a top-level job?
#'
#' @param j Twig object representing the job
#'
#' @return TRUE if and only if the job does not have a parent job.
#'
#' @export
#'
#' @author John Brzustowski \email{jbrzusto@@REMOVE_THIS_PART_fastmail.fm}

isTopJob = function(j) {
    is.null(parent(j))
}
MotusWTS/motusServer documentation built on Aug. 8, 2024, 10:23 p.m.