Skip to content

phylospatial

Spatial Phylogenetic Analysis

v1.4.0 · Apr 16, 2026 · MIT + file LICENSE

Description

Analyze spatial phylogenetic diversity patterns. Use your data on an evolutionary tree and geographic distributions of the terminal taxa to compute diversity and endemism metrics, test significance with null model randomization, analyze community turnover and biotic regionalization, and perform spatial conservation prioritizations. All functions support quantitative community data in addition to binary data.

Downloads

CRAN

589

Last 30 days

6091st

1.9K

Last 90 days

7K

Last year

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

r2u CRAN

1

Last 30 days

49

Last 90 days

159

Last year

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

autoCRAN

5

Last 7 days

18

Last 30 days

1

All-time

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

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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 3, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 31, 2026
ERROR r-devel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'alpha-diversity.Rmd' using rmarkdown
--- re-building 'beta-diversity.Rmd' using rmarkdown
--- finished re-building 'beta-diversity.Rmd'

--- re-building 'phylospatial-data.Rmd' using rmarkdown
--- f
...[truncated]...
 'phylospatial-data.Rmd'

--- re-building 'prioritization.Rmd' using rmarkdown
--- finished re-building 'prioritization.Rmd'

SUMMARY: processing the following file failed:
  'alpha-diversity.Rmd'

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

5,361

Files

106

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,553 (47.6%)Tests 691 (12.9%)Docs 1,544 (28.8%)Vignettes 573 (10.7%)

API

Exported functions

26

Internal functions

19

Recent export changes

v1.4.0+3 ps_grid, ps_suggest_n_iter, ps_trace
v1.3.0+2 ps_expand, ps_geodist

Testing & CI

Has tests

Yes

Test-to-code ratio

0.27

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

46.2%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

7

First release

2025-01-24

Latest release

2026-04-16

Avg cadence

49 days

Cold removal rate

Dep drift

1

LOC over versions

v1.0.0: 3,296 LOCv1.1.0: 3,486 LOCv1.1.1: 3,562 LOCv1.2.0: 3,733 LOCv1.2.1: 4,015 LOCv1.3.0: 4,290 LOCv1.4.0: 5,361 LOC

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

Dependency Network

Dependencies Reverse dependencies ape sf terra vegan phylospatial

Version History

8 tracked
updated 1.4.0 ← 1.3.0 diff Apr 16, 2026
updated 1.3.0 ← 1.2.1 diff Apr 3, 2026
new 1.2.1 Mar 10, 2026
updated 1.2.1 ← 1.2.0 diff Dec 23, 2025
updated 1.2.0 ← 1.1.1 diff Dec 19, 2025
updated 1.1.1 ← 1.1.0 diff May 1, 2025
updated 1.1.0 ← 1.0.0 diff Apr 8, 2025
new 1.0.0 Jan 23, 2025