File: as_phylo.R

package info (click to toggle)
r-cran-igraph 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,044 kB
  • sloc: ansic: 204,981; cpp: 21,711; fortran: 4,090; yacc: 1,229; lex: 519; sh: 52; makefile: 8
file content (19 lines) | stat: -rw-r--r-- 462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#' @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")
}