R/class_accessors.R

Defines functions config_get_tree_file

config_get_tree_file <- function(config) {
  if(class(config) == "config_input") {
    return(config@tree)
  } else if(class(config) == "fagin_config"){
    return(config@input@tree)
  } else {
    stop("Cannot get tree file from object of class '%s'", class(config))
  }
}
arendsee/fagin documentation built on Aug. 27, 2019, 11:58 a.m.