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")
}

Try the igraph package in your browser

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

igraph documentation built on Oct. 20, 2024, 1:06 a.m.