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:
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:
- Chip in some funds to support package development via PayPal;
- Set up a consulting engagement or workshop through Walker Data to help you implement spopt in your project. Send a note to kyle@walker-data.com if you are interested;
- File an issue - or even better, a pull request - at https://github.com/walkerke/spopt-r/issues.
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.
