R Under development (unstable) (2024-01-28 r85838 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(phylobase) > library(ape) Attaching package: 'ape' The following object is masked from 'package:phylobase': edges > data(geospiza) > > gtree <- extractTree(geospiza) > stopifnot(identical(gtree,prune(gtree,character(0)))) > > stopifnot(identical(tdata(subset(geospiza)), + tdata(subset(geospiza, tipLabels(geospiza))))) > > > tr <- read.tree(text="(((spA:0.2,(spB:0.1,spC:0.1):0.15):0.5,spD:0.7):0.2,spE:1):0.4;") > phyd <- as(tr, "phylo4d") > tipData(phyd) <- 1:5 > stopifnot(identical(phyd@data,subset(phyd,tipLabels(phyd))@data)) > > > proc.time() user system elapsed 1.87 0.42 2.25