spopt: Spatial Optimization for Regionalization, Facility Location, and
Market Analysis
Implements spatial optimization algorithms across several
problem families including contiguity-constrained regionalization, discrete
facility location, market share analysis, and least-cost corridor and
route optimization over raster cost surfaces. Facility location
problems also accept user-supplied network travel-time matrices. Uses
a 'Rust' backend via 'extendr' for graph and routing algorithms, and
the 'HiGHS' solver via the 'highs' package for facility location
mixed-integer programs. Method-level references are provided in the
documentation of the individual functions.
| Version: |
0.1.2 |
| Depends: |
R (≥ 4.2) |
| Imports: |
sf, spdep, Matrix, highs |
| Suggests: |
testthat (≥ 3.0.0), terra, dodgr, r5r, knitr, rmarkdown, quarto, tidycensus, tidyverse, mapgl |
| Published: |
2026-04-22 |
| DOI: |
10.32614/CRAN.package.spopt (may not be active yet) |
| Author: |
Kyle Walker [aut, cre],
PySAL Developers [cph] (Original Python spopt library) |
| Maintainer: |
Kyle Walker <kyle at walker-data.com> |
| BugReports: |
https://github.com/walkerke/spopt-r/issues |
| License: |
MIT + file LICENSE |
| URL: |
https://walker-data.com/spopt-r/,
https://github.com/walkerke/spopt-r |
| NeedsCompilation: |
yes |
| SystemRequirements: |
Cargo (Rust's package manager), rustc >= 1.70 |
| Materials: |
README, NEWS |
| CRAN checks: |
spopt results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=spopt
to link to this page.