R/as_phylo.R

Defines functions as_phylo

Documented in as_phylo

#' @rdname as_phylo
#' @title as_phylo
#' @description `r lifecycle::badge("deprecated")`
#'
#' `as_phylo` methods were renamed `as.phylo`
#' for more consistency with other R methods.
#'
#' @export
#' @param x object to be coerced
#' @inheritParams ape::as.phylo
#' @keywords internal
as_phylo <- function(x, ...) {
  lifecycle::deprecate_soft(
    "1.5.0",
    "ape::as.phylo()"
  )
  check_installed("ape", "for using `as.phylo()`")
  UseMethod("as.phylo")
}
igraph/rigraph documentation built on May 19, 2024, 6:19 a.m.