Skip to content

castor

Efficient Phylogenetics on Large Trees

v1.8.5 · Jan 20, 2026 · GPL (>= 2)

Description

Efficient phylogenetic analyses on massive phylogenies comprising up to millions of tips. Functions include pruning, rerooting, calculation of most-recent common ancestors, calculating distances from the tree root and calculating pairwise distances. Calculation of phylogenetic signal and mean trait depth (trait conservatism), ancestral state reconstruction and hidden character prediction of discrete characters, simulating and fitting models of trait evolution, fitting and simulating diversification models, dating trees, comparing trees, and reading/writing trees in Newick format. Citation: Louca, Stilianos and Doebeli, Michael (2017) <doi:10.1093/bioinformatics/btx701>.

Downloads

CRAN

2.4K

Last 30 days

2504th

5.6K

Last 90 days

31.1K

Last year

Trend: +38.8% (30d vs prior 30d)

r2u CRAN

57

Last 30 days

179

Last 90 days

674

Last year

Trend: +9.6% (30d vs prior 30d)

autoCRAN

3

Last 7 days

17

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

1.5K

Last 30 days

4.8K

Last 90 days

23.5K

Last year

Trend: -17.1% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 22.5Mb
  sub-directories of 1Mb or more:
    R      2.0Mb
    libs  19.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 23.0Mb
  sub-directories of 1Mb or more:
    R      2.0Mb
    libs  20.0Mb
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/castor.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 22.5Mb
  sub-directories of 1Mb or more:
    R      2.0Mb
    libs  19.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 23.0Mb
  sub-directories of 1Mb or more:
    R      2.0Mb
    libs  20.0Mb
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 22.5Mb
  sub-directories of 1Mb or more:
    R      2.0Mb
    libs  19.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 23.0Mb
  sub-directories of 1Mb or more:
    R      2.0Mb
    libs  20.0Mb

Code

Structure

Lines of code

74,632

Files

299

Compiled share

50.8%

Has compiled src

Yes

Language breakdown

R 19,788 (26.5%)C/C++/src 37,896 (50.8%)Docs 16,948 (22.7%)

API

Exported functions

141

Internal functions

296

Recent export changes

v1.8.5+1 hsp_naive
v1.8.4+2 read_fastq, plot_tree_radial

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

26.4%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

12.5%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

45

First release

2017-05-20

Latest release

2026-01-21

Avg cadence

55 days

Cold removal rate

100%

Dep drift

6

LOC over versions

v1.0: 11,604 LOCv1.1: 12,718 LOCv1.2: 19,195 LOCv1.2.1: 19,266 LOCv1.2.2: 19,144 LOCv1.3: 21,589 LOCv1.3.2: 22,403 LOCv1.3.3: 24,196 LOCv1.3.4: 24,459 LOCv1.3.5: 30,892 LOCv1.3.6: 30,928 LOCv1.4.0: 35,184 LOCv1.4.1: 35,692 LOCv1.4.2: 36,342 LOCv1.4.3: 37,770 LOCv1.5.0: 42,413 LOCv1.5.3: 47,817 LOCv1.5.4: 48,000 LOCv1.5.5: 48,000 LOCv1.5.7: 51,645 LOCv1.6.1: 56,266 LOCv1.6.2: 58,273 LOCv1.6.3: 58,497 LOCv1.6.4: 61,276 LOCv1.6.5: 65,269 LOCv1.6.6: 65,777 LOCv1.6.7: 66,658 LOCv1.6.8: 67,408 LOCv1.6.9: 68,842 LOCv1.7.0: 69,644 LOCv1.7.1: 69,511 LOCv1.7.2: 69,511 LOCv1.7.3: 69,882 LOCv1.7.4: 69,947 LOCv1.7.5: 69,962 LOCv1.7.6: 70,508 LOCv1.7.8: 70,662 LOCv1.7.9: 70,993 LOCv1.7.10: 70,993 LOCv1.7.11: 71,431 LOCv1.8.0: 72,825 LOCv1.8.2: 73,028 LOCv1.8.3: 73,093 LOCv1.8.4: 74,022 LOCv1.8.5: 74,632 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (9)

suggests

Dependency Network

Dependencies Reverse dependencies Rcpp naturalsort Matrix RSpectra jsonlite DAISIEprep LDM dispRity holobiont nichevol orthGS phylosignalDB rtrees treestats castor

Version History

46 tracked
new 1.8.5 Mar 10, 2026
updated 1.8.5 ← 1.8.4 diff Jan 20, 2026
updated 1.8.4 ← 1.8.3 diff Aug 24, 2025
updated 1.8.3 ← 1.8.2 diff Nov 16, 2024
updated 1.8.2 ← 1.8.0 diff Jun 28, 2024
updated 1.8.0 ← 1.7.11 diff Jan 8, 2024
updated 1.7.11 ← 1.7.10 diff Aug 16, 2023
updated 1.7.10 ← 1.7.9 diff May 18, 2023
updated 1.7.9 ← 1.7.8 diff Apr 17, 2023
updated 1.7.8 ← 1.7.6 diff Feb 28, 2023
updated 1.7.6 ← 1.7.5 diff Dec 13, 2022
updated 1.7.5 ← 1.7.4 diff Nov 9, 2022
updated 1.7.4 ← 1.7.3 diff Oct 22, 2022
updated 1.7.3 ← 1.7.2 diff Sep 1, 2022
updated 1.7.2 ← 1.7.1 diff Jan 7, 2022