Package: rtrees 2.0.2

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.zip(r-4.7)rtrees_2.0.2.zip(r-4.6)rtrees_2.0.2.zip(r-4.5)
rtrees_2.0.2.tgz(r-4.6-x86_64)rtrees_2.0.2.tgz(r-4.6-arm64)rtrees_2.0.2.tgz(r-4.5-x86_64)rtrees_2.0.2.tgz(r-4.5-arm64)
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://daijiang.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:

phylogenetic-treescpp

6.66 score 36 stars 91 scripts 7 exports 45 dependencies

Last updated from:b786f81708. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK208
linux-devel-x86_64OK217
source / vignettesOK200
linux-release-arm64OK190
linux-release-x86_64OK185
macos-release-arm64OK138
macos-release-x86_64OK276
macos-oldrel-arm64OK141
macos-oldrel-x86_64OK329
windows-develOK185
windows-releaseOK239
windows-oldrelOK213
wasm-releaseOK126

Exports:add_root_infobind_tipget_graft_statusget_one_treeget_treerm_starssp_list_df

Dependencies:apecastorclicodetoolscpp11data.tabledigestdplyrfastmatchfsfurrrfuturegenericsglobalsgluejsonlitelatticelazyevallifecyclelistenvmagrittrMatrixmegatreesnaturalsortnlmeparallellypillarpkgconfigpurrrR6rappdirsRcppRcppEigenrlangRSpectrastringistringrtibbletidyrtidyselecttidytreeutf8vctrswithryulab.utils

grafting_scenarios

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

Last update: 2026-05-25
Started: 2026-05-25

Non-monophyletic-groups

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

Last update: 2026-05-25
Started: 2026-05-25

Simple_example

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

Last update: 2026-05-18
Started: 2026-05-18

Speed comparisons

Rendered fromspeed.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-05-18
Started: 2023-01-03