Conservation Indicators Using Spatial Information
Overview
Supports the assessment of the degree of conservation of taxa in conservation systems, both in ex situ (in genebanks, botanical gardens, and other repositories), and in situ (in protected natural areas). Methods are described in Carver et al. (2021) doi:10.1111/ecog.05430, building on Khoury et al. (2020) doi:10.1073/pnas.2007029117, Khoury et al. (2019) doi:10.1016/j.ecolind.2018.11.016, Khoury et al. (2019) doi:10.1111/DDI.13008, Castaneda-Alvarez et al. (2016) doi:10.1038/nplants.2016.22, and Ramirez-Villegas et al. (2010) doi:10.1371/journal.pone.0013497.
- Method addition: The workflow now supports taxa for which no species distribution model is available (for example, taxa with records but no usable coordinates).
SRSin,ERSin, andERSexacceptsdm = NULL;SRSinthen evaluates all occurrence points against protected areas, and the ERS metrics return 0 with the ecoregion counts set accordingly. The results tables and leaflet maps reflect the missing model. - Method addition: Added the
noModelparameter toFCSexandFCSin. WhenTRUE,GRSandERSare assigned 0 and the final conservation score is the mean of the three metrics, consistent with the treatment of unmodelled taxa in Khoury et al. (2019) <doi:10.1016/j.ecolind.2018.11.016>.GRSexandGRSinrequire a model and should be skipped for these taxa. - Bug fix:
getDatasetswrote the ecoregions file into the protected areas folder and used a misspelled filename for the protected areas raster. Both paths are corrected, and the function gains anout_dirargument (defaulting to the previoustools::R_user_dir()location) and returns the file paths invisibly. - Bug fix:
ERSexandERSinno longer error whenlimitByPoints = TRUEleaves no ecoregions to evaluate. - Infrastructure: Replaced data-masked column references in
ERSexwith the.datapronoun. - Infrastructure: Added a
testthatfile covering taxa with no coordinates, taxa with no model, taxa with no G records, and thenoModelbehaviour ofFCSexandFCSin.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-16
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 2 ERROR2026-05-06
- OK5 OK2026-04-10
Documentation
- Help pages
- 21
- Examples that run
- 75%12 run in a plain check · 4 hold no code
- Exported functions with examples
- 94%
- Documented parameters
- 97%
- Return-value docs
- 100%
- Help pages citing references
- 95%
Downloads
Repository
- PRs merged (all time)
- 83%
- Median days to close, 50 most recently updated closed issues
- 468
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/ciat-dapa/gapanalysis on 2026-10-18.
Dependencies
Code & Tests
Datasets
People & History
Previously maintained by Julian Ramirez-Villegas (1.0.1 to 1.0.2).
Pick two releases to compare their code metrics.
- 2.1.1Latest
- 2.1.02026-07-23 · diff ↗
- 2.0.22026-05-12 · diff ↗
- RR 4.6.0 released · 2026-04-24
- unarchivedReturned to CRAN2026-04-09
- 2.0.02026-04-09 · diff ↗ ·
removed 6 exports
Gbuffer, GetDatasets, OccurrenceCounts, ParamTest, SummaryHTML, indicatoradded 8 exports
checkEcoregion, checkOccurrences, checkProtectedAreas, checksdm, generateCounts, generateEcoSelection, generateGBuffers, getDatasets - RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- archivedRemoved from CRAN2023-06-09issues were not corrected in time
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- unarchivedReturned to CRAN2021-06-14
- 1.0.22021-06-14 · diff ↗
- RR 4.1.0 released · 2021-05-18
- archivedRemoved from CRAN2021-02-16depends on archived package 'dataverse'
- 1.0.12020-08-10
Show 1 earlier eventHide 1 earlier event
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-08-10
- Total releases
- 6 / 6 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.3.0
- Bundled data
- 605 KB / 4 files
- Download size
- 664 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("GapAnalysis")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.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.