Skip to content

treedater

2.0.0Package record

Fast Molecular Clock Dating of Phylogenetic Trees with Rate Variation

0packages depend
4.3Kdownloads / year
60.2%test coverage
13/13flavors OK

Overview

About

Functions for estimating times of common ancestry and molecular clock rates of evolution using a variety of evolutionary models, parametric and nonparametric bootstrap confidence intervals, methods for detecting outlier lineages, root-to-tip regression, and a statistical test for selecting molecular clock models. For more details see Volz and Frost (2017) doi:10.1093/ve/vex025.

Changes in 2.0.0

New features

  • **Sparse node-time solver (clsSolver = "sparse"), now the default.** The temporally-constrained least-squares step that estimates internal-node times is now solved with a sparse tree-Laplacian **Goldfarb–Idnani dual active-set** instead of forming and solving a dense quadratic program. Each step applies L⁻¹ to one constraint column (an O(n) sparse solve) and updates a small dense Schur factor. End-to-end this is roughly 6× faster than the dense solver on a real 1,000-tip relaxed-clock fit and ~15× at 2,000 tips, while returning numerically identical estimates (tMRCA/rate agree with the dense solver to ~1e-8 or better). Because it is a *dual* method, it also converges on **degenerate** constraint sets — many linearly-dependent binding constraints, common on large, non-clock-like trees — by exchanging constraints, where the earlier primal active-set had to fall back to the dense quadprog solver (e.g. ~14× faster than that fallback at 4,000 tips). The dense solver is available as clsSolver = "quadprog", and "mgcv" is unchanged. The sparse path requires the **Matrix** package (a recommended package shipped with R) and falls back to "quadprog" automatically if it is unavailable or fails, so a result is always produced. See notes/sparse-active-set.md for details.
Show all changes in 2.0.0Hide the rest of the changes in 2.0.0

Dependencies

  • **limSolve is no longer required** (it is being discontinued on CRAN). The dense constrained-least-squares solver now uses **quadprog** (moved to Imports); limSolve has been dropped from Depends.

Bug fixes

  • dater() now forwards its clsSolver argument to the internal fitting routine (previously the top-level clsSolver argument was ignored).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 6.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.0.0
READMEYes · 225 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 2.0.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
12includes a package overview page
Examples that run
86%6 run in a plain check · 1 never run
Exported functions with examples
70%
Documented parameters
98%
Return-value docs
90%
Help pages citing references
8%
Vignettes (1)

Downloads

4.3K
CRAN downloads in the past year
Rank #6,751 · ~12/day · ~361/mo
Daily download trend is not available in this view yet.
52130 days
1.3K90 days
4.3K1 year
Compare downloads with other packages →
Also on104 r2u6 autocran115 c2d4u

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing treedater adds 4 packages (4 with compiled code, 3.5 MB of source tarballs). Heaviest: Rcpp 1.8 MB, ape 1.4 MB, digest 231 KB.

Depends (1)
Imports (2)
Matrixquadprog
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.2.0 (2018)
Releases (5)

Pick two releases to compare their code metrics.

  • 2.0.0Latest
    record
    2026-07-05 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • unarchivedReturned to CRAN
    2025-09-03
  • 1.0.2
    record
    2025-09-03 · diff ↗ ·
    added 1 export
    gibbs_jitter
  • archivedRemoved from CRAN
    2025-06-02
    requires archived package 'limSolve'
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.5.0
    record
    2020-01-26 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.0
    record
    2019-01-16 · diff ↗ ·
    added 1 export
    rootToTipRegressionPlot
  • 0.2.0
    record
    2018-05-04
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2018-05-04
Total releases
5 / 8 yrs
License
GPL-2 OSI
Download size
142 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("treedater")
Volz, E. (2026). treedater: Fast Molecular Clock Dating of Phylogenetic Trees with Rate Variation (Version 2.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.treedater

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for treedater version 2.0.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy