Skip to contents

The spopt R package provides R-native implementations of spatial optimization algorithms for regionalization, facility location, and market analysis. Inspired by Python’s PySAL spopt, the package brings these powerful algorithms to R users with an sf-first API and a Rust backend for performance.

Install from r-universe:

install.packages("spopt", repos = "https://walkerke.r-universe.dev")

For developers who need to build from source (requires Rust), see CONTRIBUTING.md.

Read through these vignettes to learn how to use the package:

Support and how to learn more

If you find this project useful in your work and would like to ensure continued development of the package, you can provide support in the following ways:

To stay on top of package updates / new features and to get information about trainings, be sure to sign up for the Walker Data mailing list here.