Computation of Optimal Transport Plans and Wasserstein Distances
Overview
Solve optimal transport problems. Compute Wasserstein distances (a.k.a. Kantorovitch, Fortet--Mourier, Mallows, Earth Mover's, or minimal L_p distances), return the corresponding transference plans, and display them graphically. Objects that can be compared include grey-scale images, (weighted) point patterns, and mass vectors.
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- WARNING12 OK, 1 WARNING2026-06-07
- OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 31 (1 internal)includes a package overview page
- Examples that run
- 60%12 run in a plain check (1 of them under a condition) · 6 never run · 2 hold no code
- Exported functions with examples
- 76%
- Documented parameters
- 54%
- Return-value docs
- 88%
- Help pages citing references
- 55%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Issues over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/dschuhmacher/transport on 2026-10-21.
Dependencies
Installing transport adds 3 packages (3 with compiled code, 9.2 MB of source tarballs). Heaviest: data.table 5.7 MB, Rcpp 1.8 MB, RcppEigen 1.7 MB.
Show all 20 packagesHide all 20 packages
Code & Tests
Datasets
People & History
Maintainer since 0.6-1 (2014)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.15-4Latest
- 0.15-22024-05-10 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.15-02024-03-27 · diff ↗ ·
removed 1 export
plot.ubtransadded 4 exports
plot.ut_pgrid, plot.ut_wpp, unbalanced.pgrid, unbalanced.wpp - 0.14-72024-02-18 · diff ↗
- 0.14-62023-07-02 · diff ↗
- 0.14-42023-06-25 · diff ↗
- 0.14-12023-05-21 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.13-0
- 0.12-42022-08-13 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
Show 22 earlier eventsHide 22 earlier events
- 0.12-22020-03-11 · diff ↗
- 0.12-12019-08-19 · diff ↗
- 0.12-02019-08-06 · diff ↗
- 0.11-22019-07-06 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.11-12019-04-17 · diff ↗
- 0.11-0
- 0.10-0
- RR 3.5.0 released · 2018-04-23
- 0.9-42017-10-03 · diff ↗
- 0.9-3
- RR 3.4.0 released · 2017-04-21
- 0.8-2
- 0.8-12016-12-08 · diff ↗ ·
added 7 exports
all.equal.wpp, compatible.wpp, plot.wpp, semidiscrete, transport.wpp, transport_track, wpp - RR 3.3.0 released · 2016-05-03
- 0.7-32016-02-25 · diff ↗
- 0.7-02015-10-22 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 0.6-32014-10-16 · diff ↗
- 0.6-22014-06-22 · diff ↗
- 0.6-12014-05-31
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-05-31
- Total releases
- 25 / 12 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.1
- Bundled data
- 122 KB / 3 files
- Download size
- 382 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("transport")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.