The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

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
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:

Reference manual: spopt.html , spopt.pdf

Downloads:

Package source: spopt_0.1.2.tar.gz
Windows binaries: r-release: spopt_0.1.2.zip, r-oldrel: spopt_0.1.2.zip
macOS binaries: r-release (arm64): spopt_0.1.2.tgz, r-oldrel (arm64): spopt_0.1.2.tgz, r-release (x86_64): spopt_0.1.2.tgz, r-oldrel (x86_64): spopt_0.1.2.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=spopt to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.