Deriving Phylogenies from Synthesis Trees
Overview
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.
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK7 OK2026-06-12
Documentation
- Help pages
- 12 (2 internal)includes a package overview page
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 50%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- grafting_scenarios HTML
- Non-monophyletic-groups HTML
- Simple_example HTML
- Speed comparisons HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
Commits over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/daijiang/rtrees on 2026-10-21.
GitHub Pages site last deployed 2026-09-14 · The repository has a site deploy workflow
pkgdown site last built 2026-09-14
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-05-01Named in .Rbuildignore: .claudeNamed in .gitignore: .claudeCommits: at least 2 crediting it in the message
- Claude Sonnet 4.62 commits · May 2026
Dependencies
Installing rtrees adds 41 packages (25 with compiled code, 38 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, megatrees 4.1 MB.
Code & Tests
Datasets
People & History
- 2.0.2Latest2026-06-11 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-11
- Total releases
- 1 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 302 KB / 2 files
- Download size
- 1.7 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("rtrees")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.