Package: rtrees 2.0.2

Daijiang Li

rtrees: Deriving Phylogenies from Synthesis Trees

Provides tools to derive species-level phylogenies from large synthesis mega-trees for a wide range of taxonomic groups, including plants, birds, mammals, amphibians, reptiles, fish, bees, butterflies, and sharks. When a queried species is absent from the mega-tree, it is grafted onto the tree using one of two placement strategies: attachment at the basal node of the most closely related genus or family ('at_basal_node'), or random attachment below that basal node with probability proportional to branch length ('random_below_basal'). See Li (2023) <doi:10.1111/ecog.06643> for details. Multiple species from a genus not represented in the mega-tree are placed as a polytomy to preserve clade coherence. The package interfaces with the 'megatrees' data package, which bundles or downloads on demand curated mega-trees. Users can also provide their own mega-trees.

Authors:Daijiang Li [aut, cre]

rtrees_2.0.2.tar.gz
rtrees_2.0.2.tar.gz(r-4.7-arm64)rtrees_2.0.2.tar.gz(r-4.7-x86_64)rtrees_2.0.2.tar.gz(r-4.6-arm64)rtrees_2.0.2.tar.gz(r-4.6-x86_64)
rtrees_2.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
rtrees/json (API)

# Install 'rtrees' in R:
install.packages('rtrees', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/daijiang/rtrees/issues

Pkgdown/docs site:https://daijiang.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

cpp

4.28 score 95 scripts 8 exports 45 dependencies

Last updated from:bcb28364b7. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK187
linux-devel-x86_64OK280
source / vignettesOK232
linux-release-arm64OK213
linux-release-x86_64OK209
wasm-releaseOK129

Exports:add_root_infobind_tipbind_tip_dfget_graft_statusget_one_treeget_treerm_starssp_list_df

Dependencies:apecastorclicodetoolscpp11data.tabledigestdplyrfastmatchfsfurrrfuturegenericsglobalsgluejsonlitelatticelazyevallifecyclelistenvmagrittrMatrixmegatreesnaturalsortnlmeparallellypillarpkgconfigpurrrR6rappdirsRcppRcppEigenrlangRSpectrastringistringrtibbletidyrtidyselecttidytreeutf8vctrswithryulab.utils

grafting_scenarios

Rendered fromgrafting_scenarios.html.asisusingR.rsp::asison Jun 11 2026.

Last update: 2026-06-11
Started: 2026-06-11

Non-monophyletic-groups

Rendered fromNon-monophyletic-groups.html.asisusingR.rsp::asison Jun 11 2026.

Last update: 2026-06-11
Started: 2026-06-11

Simple_example

Rendered fromSimple_example.html.asisusingR.rsp::asison Jun 11 2026.

Last update: 2026-06-11
Started: 2026-06-11

Speed comparisons

Rendered fromspeed.Rmdusingknitr::rmarkdownon Jun 11 2026.

Last update: 2026-06-11
Started: 2026-06-11