'Circuitscape' and 'Omniscape' Connectivity Analysis via 'Julia'
Overview
Provides an R-native interface to the 'Circuitscape.jl' and 'Omniscape.jl' 'Julia' packages for landscape connectivity modeling using circuit theory. Users work entirely in R with familiar objects (SpatRaster, file paths) while 'Julia' handles computation invisibly. Supports all four 'Circuitscape' modes (pairwise, one-to-all, all-to-one, advanced) and 'Omniscape' moving-window analysis. Methods are described in McRae (2006) doi:10.1111/j.0014-3820.2006.tb00500.x and Landau et al. (2021) doi:10.21105/joss.02829.
New features
- New
os_condition()constructor givesos_run()full access to Omniscape's conditional connectivity (#2): "within"comparisons with user-specified bounds (lower,upper).- Present-vs-future comparisons (
future), in which sources' present-day values are compared against targets' future values, as in climate-tracking connectivity analyses. - Two simultaneous conditions, by passing a list of two
os_condition()objects. os_run()now warns when a condition layer has missing values at source cells, which Omniscape does not filter.- All
cs_*()functions andos_run()now warn if the installed Circuitscape.jl or Omniscape.jl does not recognize a configuration option written by circuitscaper, rather than letting the option silently have no effect.
Show all changes in 0.1.1Hide the rest of the changes in 0.1.1
Bug fixes
- In 0.1.0,
os_run()'scondition_typeargument was written to the Omniscape configuration under a key Omniscape does not recognize, so it was silently ignored. All conditional analyses instead used Omniscape's defaults,"within"with bounds of 0 and 0: a source was connected to a target only if its condition value exactly equaled the median value of the target block. This was neither the documented behavior (an unbounded range) nor the requested"equal"comparison. **Results from 0.1.0 that usedconditionshould be rerun.** - In 0.1.0,
four_neighbors = TRUEwas written to the Circuitscape configuration under an unrecognized key and silently ignored incs_pairwise(),cs_one_to_all(),cs_all_to_one(), andcs_advanced(); all analyses used 8-neighbor connectivity. **Results from 0.1.0 that usedfour_neighbors = TRUEshould be rerun.**
Breaking changes and deprecations
- Passing a raster directly as
os_run(condition = )is now shorthand foros_condition(x, type = "equal"). Useos_condition()for"within"comparisons, which now require explicit bounds. os_run()'scondition_typeargument is deprecated.condition_type = "equal"still works with a warning;condition_type = "within"now errors, since it has no way to specify bounds.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK5 OK2026-04-10
Documentation
- Help pages
- 10 (1 internal)includes a package overview page
- Examples that run
- 89%8 run in a plain check (7 of them under a condition) · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 95%
- Return-value docs
- 100%
- Help pages citing references
- 70%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 15
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Releases over time
Issues over time
Commits over time
7 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/matthewkling/circuitscaper on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-20 · The repository has a site deploy workflow
pkgdown site last built 2026-10-20
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-02-21Named in .Rbuildignore: .claudeCommits: at least 43 crediting it in the message
- Claude Opus 4.640 commits · Feb to Mar 2026
- Claude Opus 5.53 commits · Oct 2026
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.1.1Latest
- RR 4.6.0 released · 2026-04-24
- 0.1.02026-04-09
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-04-09
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0
- Download size
- 181 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("circuitscaper")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-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.