Skip to content

spopt

0.1.2

Spatial Optimization for Regionalization, Facility Location, and Market Analysis

0packages depend
1.9Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Kyle WalkerFirst published 2026-04-221 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 8.3 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.38
not tracked
Coverage
100%
Documentation · exports
4
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-30
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-07-29
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • NOTE2026-04-25
    9 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-23
    8 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 230 wordsVignettesNopkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
10%
Documented parameters
100%
Return-value docs
100%
References docs
35%

Downloads

1.9K
CRAN downloads in the past year
Rank #6,887 · ~5/day · ~158/mo
Daily download trend is not available in this view yet.
29530 days
1.2K90 days
1.9K1 year
Compare downloads with other packages →
Also on118 r2u

Repository

Repository
61Stars
6Forks
1Open issues
0Open PRs
1Releases
97Commits
3Contributors
97 commits · Last activity 2026-04-24 · +1.7% stars, 30d

Stars over time

2026-07-14 · 602026-08-08 · 61

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/walkerke/spopt-r on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
Lint, format, editor (1)
VS Code
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.2
Imports (4)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Copyright holders (1)
Copyright holder
Package Timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.2Latest
    2026-04-22 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-04-22
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.2
Bundled data
164 KB / 2 files
Download size
4.9 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("spopt")
Walker, K., & PySAL Developers. (2026). spopt: Spatial Optimization for Regionalization, Facility Location, and Market Analysis (Version 0.1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.spopt

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for spopt version 0.1.2 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy