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);
  }
}
Matherion/justifier documentation built on Dec. 31, 2020, 3:13 p.m.