Skip to content

corridoR

0.2.0Package record

Migration Corridors and Genetic Range Shifts from Landscape Genetic Data

0packages depend
38downloads / year
85.3%test coverage
10/10flavors OK

Overview

About

Models genetic connectivity along migration corridors and forecasts how it shifts under climate change, following Maier et al. (2022) doi:10.1038/s41437-022-00561-x. Least cost corridors are built from accumulated cost surfaces and used as weights to summarize raw environmental layers between sites; each group of environmental features can choose its own corridor bandwidth; and pairwise predictions of differentiation and directional migration are mapped back onto the landscape as magnitude and net-direction surfaces. Includes readers for common genotype formats (STRUCTURE, GENEPOP, VCF, GenAlEx, FSTAT and PLINK files, and 'adegenet' objects), pairwise fixation indices, and the directional differentiation of Sundqvist et al. (2016) doi:10.1002/ece3.2096.

Changes in 0.2.0
  • The package description no longer starts with "Tools for", and file formats are no longer quoted (CRAN request).
  • The example data no longer raise warnings with older GDAL and PROJ libraries: the sites are stored as GeoPackage 1.2, and the example coordinate system names its datum (WGS84) explicitly. Coordinates and values are unchanged.
  • New rank_resistance() compares candidate resistance surfaces by how well least cost distance through each explains genetic distance (mixed models with source and destination as random effects), with straight-line distance as a baseline. The tutorial uses it in step 2.
  • fit_connectivity() and select_bandwidth() now keep both directions of a pair (A to B and B to A) in the same cross-validation fold. Before, a pair could be predicted from its own reverse, which inflated cross-validated R2 and could favor overfit settings.

From NEWS.md in the release

Install

Health

CRAN checks
10OK
Slowest check: 9.8 min · r-oldrel-windows-x86_64
Status changes
  • OK10 OKNow
  • OK6 OK2026-10-23
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 468 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.2.0Citation fileYes · cites a publicationWebsiteYes
Help pages
24 (1 internal)includes a package overview page
Examples that run
50%11 run in a plain check · 11 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
84%
Return-value docs
100%
Help pages citing references
17%

Downloads

38
CRAN downloads in the past year
Rank #25,706 · ~0/day · ~3/mo
corridoR
Daily download trend is not available in this view yet.

Repository

0Stars
0Forks
0Open issues
0Open PRs
2Releases
16Commits
1Commit identities
climate-changeconnectivityconservation-geneticscubistfstgene-flowlandscape-geneticsleast-cost-path
16 commits · Last activity 2026-10-22
Responsiveness
not measured
PracticesBeta

Repository github.com/paulmaier/corridor is linked, but repository-practices checks have not run for it yet.

How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

Installing corridoR adds 22 packages (17 with compiled code, 31 MB of source tarballs). Heaviest: sf 9.3 MB, igraph 4.8 MB, sp 4.3 MB.

Depends (1)
R >= 4.1
Imports (8)
gdistancegraphicsgrDevicesrastersfstatsterrautils
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 (2026), Copyright holder
Releases (1)
  • 0.2.0Latest
    2026-10-22 · current release ·
    8 days in CRAN's queue
    Listed in CRAN's incoming queue from 2026-10-14 15:39 to 2026-10-22 12:59 UTC, in 48 readings.
  • R
    R 4.6.0 released · 2026-04-24
Across CRAN, the median accepted release of the past year spent 26 hours in the queue, 90% under 11 days.How queue time is measured

Package metadata

First published
2026-10-22
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1
Download size
4.6 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("corridoR")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.1038/s41437-022-00561-x.

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 corridoR version 0.2.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