spanishoddata
0.2.6Get Spanish Origin-Destination Data
Overview
Gain seamless access to origin-destination (OD) data from the Spanish Ministry of Transport, hosted at https://www.transportes.gob.es/ministerio/proyectos-singulares/estudios-de-movilidad-con-big-data/opendata-movilidad. This package simplifies the management of these large datasets by providing tools to download zone boundaries, handle associated origin-destination data, and process it efficiently with the 'duckdb' database interface. Local caching minimizes repeated downloads, streamlining workflows for researchers and analysts. Methods described in Kotov et al. (2026) doi:10.1177/23998083251415040. Extensive documentation is available at https://ropenspain.github.io/spanishoddata/index.html, offering guides on creating static and dynamic mobility flow visualizations and transforming large datasets into analysis-ready formats.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE r-devel-windows-x86_64
- NOTE2026-07-1611 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-05-2413 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-05-1712 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-05-1513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-05-1312 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 94%
- Return-value docs
- 100%
- References docs
- 11%
Downloads
Repository
Repository practices
7 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/ropenspain/spanishoddata on 2026-07-19.
Show all practices
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 3.0 median / 56 max
- Test cases
- 149 / 0.79 per code line
Test coverage
Line coverage
86%
Expression
82.5%
Tests / Examples
86.2% / 1% ex
Functions
74 15 exported
Complexity
6.1 avg / 56 max
Call network
74 nodes / 138 edges
Call graph
Open call graph →Lowest coverage
74 functions| Function | Cyclo | Coverage |
|---|---|---|
| spod_download_file | 1 | 0% |
| spod_get_zones_v1 | 3 | 0% |
| spod_interactive | 1 | 0% |
| spod_readline | 1 | 0% |
| spod_sf_st_read | 1 | 0% |
| spod_get_zones_v2 | 6 | 22% |
People & History
9 releases. Pick two to compare their code metrics. R releases are shown for context.
Package metadata
- First published
- 2024-12-18
- Total releases
- 9 / 2 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 2.5 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet