check_phylogeny: Check if the phylogeny is a valid phylogeny object.

View source: R/check_phylogeny.R

check_phylogenyR Documentation

Check if the phylogeny is a valid phylogeny object.

Description

Calls stop if the phylogeny is invalid

Usage

check_phylogeny(phylogeny)

Arguments

phylogeny

a phylogeny of type phylo from the ape package

Value

nothing

Author(s)

Richèl J.C. Bilderbeek

See Also

Use ape::read.tree to create a phylogeny

Examples

check_empty_beautier_folder()

# Must do nothing on phylogenies
phylogeny <- ape::read.tree(text = "(A:1, B:1):1;")
check_phylogeny(phylogeny)

check_empty_beautier_folder()

ropensci/beautier documentation built on July 9, 2024, 6:14 a.m.