R/has_child_specs.R

Defines functions has_child_specs

has_child_specs <- function(x,
                            childNames = c('source',
                                           'assertion',
                                           'justification',
                                           'decision',
                                           'justifier')) {
  if (is.null(names(x))) {
    return(FALSE);
  } else if (any(names(x) %in% childNames)) {
    return(TRUE);
  } else {
    return(FALSE);
  }
}

Try the justifier package in your browser

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

justifier documentation built on March 7, 2023, 6:59 p.m.