R Observatory
Search
install.packages("geohabnet")
CRAN 30-day downloads, method
413−19% down on the 30 days before, the worse direction
Test coverage, method
60%of lines run by tests

The 'geohabnet' package is designed to perform a geographically or spatially explicit risk analysis of habitat connectivity. Xing et al (2021) <doi:10.1093/biosci/biaa067> proposed the concept of cropland connectivity as a risk factor for plant pathogen or pest invasions.

Full description

The 'geohabnet' package is designed to perform a geographically or spatially explicit risk analysis of habitat connectivity. Xing et al (2021) <doi:10.1093/biosci/biaa067> proposed the concept of cropland connectivity as a risk factor for plant pathogen or pest invasions. As the functions in 'geohabnet' were initially developed thinking on cropland connectivity, users are recommended to first be familiar with the concept by looking at the Xing et al paper. In a nutshell, a habitat connectivity analysis combines information from maps of host density, estimates the relative likelihood of pathogen movement between habitat locations in the area of interest, and applies network analysis to calculate the connectivity of habitat locations. The functions of 'geohabnet' are built to conduct a habitat connectivity analysis relying on geographic parameters (spatial resolution and spatial extent), dispersal parameters (in two commonly used dispersal kernels: inverse power law and negative exponential models), and network parameters (link weight thresholds and network metrics). The functionality and main extensions provided by the functions in 'geohabnet' to habitat connectivity analysis are a) Capability to easily calculate the connectivity of locations in a landscape using a single function, such as sensitivity_analysis() or msean(). b) As backbone datasets, the 'geohabnet' package supports the use of two publicly available global datasets to calculate cropland density. The backbone datasets in the 'geohabnet' package include crop distribution maps from Monfreda, C., N. Ramankutty, and J. A. Foley (2008) <doi:10.1029/2007gb002947> "Farming the planet: 2. Geographic distribution of crop areas, yields, physiological types, and net primary production in the year 2000, Global Biogeochem. Cycles, 22, GB1022" and International Food Policy Research Institute (2019) <doi:10.7910/DVN/PRFF8V> "Global Spatially-Disaggregated Crop Production Statistics Data for 2010 Version 2.0, Harvard Dataverse, V4". Users can also provide any other geographic dataset that represents host density. c) Because the 'geohabnet' package allows R users to provide maps of host density (as originally in Xing et al (2021)), host landscape density (representing the geographic distribution of either crops or wild species), or habitat distribution (such as host landscape density adjusted by climate suitability) as inputs, we propose the term habitat connectivity. d) The 'geohabnet' package allows R users to customize parameter values in the habitat connectivity analysis, facilitating context-specific (pathogen- or pest-specific) analyses. e) The 'geohabnet' package allows users to automatically visualize maps of the habitat connectivity of locations resulting from a sensitivity analysis across all customized parameter combinations. The primary functions are msean() and sensitivity analysis(). Most functions in 'geohabnet' provide three main outcomes: i) A map of mean habitat connectivity across parameters selected by the user, ii) a map of variance of habitat connectivity across the selected parameters, and iii) a map of the difference between the ranks of habitat connectivity and habitat density. Each function can be used to generate these maps as 'final' outcomes. Each function can also provide intermediate outcomes, such as the adjacency matrices built to perform the analysis, which can be used in other network analysis. Refer to article at <https://garrettlab.github.io/HabitatConnectivity/articles/analysis.html> to see examples of each function and how to access each of these outcome types. To change parameter values, the file called 'parameters.yaml' stores the parameters and their values, can be accessed using 'get_parameters()' and set new parameter values with 'set_parameters()'. Users can modify up to ten parameters.

Maintainer
Krishna Keshav
Licence
GPL-3
Latest release
26 May 2026
First release
20 Oct 2023

Compare with another package

More details
Releases
9
Needs compilation
No
Date
2026-05-25
RoxygenNote
7.3.2
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("geohabnet")
APA
Keshav, K., University of Florida, Garrett, K., Lab, G., & Plex, A. (2026). geohabnet: Geographical Risk Analysis Based on Habitat Connectivity (Version 2.3) [Computer software]. https://doi.org/10.32614/CRAN.package.geohabnet
About

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

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 geohabnet version 2.3 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    2.3
    Time taken
    82 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    2.3
    Time taken
    57 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    2.3
    Time taken
    55 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    2.3
    Time taken
    52 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    2.3
    Time taken
    100 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    2.3
    Time taken
    25 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    2.3
    Time taken
    70 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    2.3
    Time taken
    120 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    2.3
    Time taken
    77 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    2.3
    Time taken
    78 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    2.3
    Time taken
    25 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    2.3
    Time taken
    69 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    2.3
    Time taken
    101 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (3)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
429−21.7% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

8,053 of 26,530

CRAN

413 downloads in the last 30 days

Rank
8,053 of 26,530
Change
−19% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

11 downloads in the last 30 days

Rank
6,263 of 30,526
Change
−50% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

5 downloads in the last 30 days

Rank
10,893 of 29,212
Change
−68.8% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
19
Dependent packages
0
Suggested by
0
Needs (19)
Installing it adds
55 packages, 60.9 MB of source
Of those, need compilation
32
Optional extras (7)
Functions
89
Public exports
37
Lines of R code
2,773
Median complexity
2
Functions (89)
Size and composition

Lines by kind (4,424)

KindLinesShare
R code2,77363%
Tests1293%
Documentation1,52234%

Lines by language

LanguageLinesShare
R2,87265%
Rd1,52234%
YAML300.7%

Languages are counted from file extensions.

Files
84
R functions
89
Object systems
S4: 4 classes, S4: 4 generics, S4: 9 methods, Reference classes: 2 classes
Complexity
Median
2
Mean
2.25
Highest
9
Median lines per function
11
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
89
Calls
135
Unconnected
6
Groups
1
Growth (9 releases)
Total lines by release
3,800 on 20 Oct 20234,424 on 26 May 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
60.1%
Expressions run by tests
56.7%
Test cases
10
Exports named in tests
11.1%
Coverage by file (15)
Coverage run
Lines counted
1,032
Lines the tests ran
620
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
10
Lines of tests
129
Test lines per line of code
0.05
Exports documented
96.3%
Arguments documented
97.8%
Return value documented
96.2%
Help pages with examples
18.8%
Examples run in checks
100%
Other documentation
README
Yes, 289 words
Release notes file
Yes
Help pages
48
Lines of documentation
1,522

1 dataset, 0 can be loaded by name

DatasetSizeColumns
xing_cartoon5 × 7x1, x2, x3, x4, x5, x6 and 1 more

Funded by University of Florida

GarrettLab / habitatconnectivity on github.com

Stars
7+16.7% up on 30 days ago, the better direction
Forks
6
Open issues
14
Last commit
26 Jul 2026
Activity
Commits
500
Open pull requests
1
Tagged releases
8
Latest tagged release
v2.3, 27 May 2026
Issues closed in
27 days (median)
Pull requests closed in
2 days (median)
Pull requests merged
92%
Created
11 Nov 2022
Licence file reads as
GPL-3.0
Development practices (5)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Governance and communityCODEOWNERS
Docs sourceGitHub Pages site last deployed 2026-07-26
pkgdown site last built 2026-07-26
Lint, format, editorRStudio project

Method, repository practices

Across GarrettLab

R releases
  • On CRAN
  • Archived
  • Release
1.0.02.0.02.1.22.1.32.22.3BackArchivedBackArchivedArchived and backArchived

Archived and back

ArchivedBackCRAN's reasonKind
28 Sep 202421 May 2025issues were not corrected despite remindersChecks not fixed
27 May 202427 Jun 2024requires archived package 'geodata'Needs an archived package
VersionReleasedREvents
2.3 current26 May 20264.6.0
2.221 May 20254.5.0Back on CRAN 21 May 2025
2.1.327 Jun 20244.4.1Back on CRAN 27 Jun 2024
Archived 28 Sep 2024
“issues were not corrected despite reminders”
2.1.28 Apr 20244.3.3Archived 27 May 2024
“requires archived package 'geodata'”
2.1.15 Apr 20244.3.3
2.1.028 Mar 20244.3.3
2.0.027 Feb 20244.3.2
1.0.131 Oct 20234.3.2
Earlier versions (1)
VersionReleasedR
1.0.020 Oct 20234.3.1