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))
}
jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.