Skip to content

spanishoddata

0.2.6

Get Spanish Origin-Destination Data

0packages depend
3.9Kdownloads / year
86.2%test coverage
9/13checks pass

Overview

About
Maintained by Egor KotovFirst published 2024-12-189 releasesCRAN page ↗GitHub ↗

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

CRAN checks
4NOTE9OK
Failing flavors
  • 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
Slowest check: 3.0 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.79
86.2%
Coverage · measured lines
100%
Documentation · exports
24
Dependencies · direct
Check history
  • NOTE2026-07-16
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-24
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-17
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-15
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-13
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 2,297 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
94%
Return-value docs
100%
References docs
11%

Downloads

3.9K
CRAN downloads in the past year
Rank #6,985 · ~11/day · ~325/mo
Daily download trend is not available in this view yet.
29430 days
1.5K90 days
3.9K1 year
Compare downloads with other packages →
Also on179 r2u34 autocran

Repository

Repository
48Stars
5Forks
13Open issues
0Open PRs
9Releases
681Commits
7Contributors
cdrdatadata-packagemobilityorigin-destinationrstatsmobile-telephone-data
681 commits · Last activity 2026-07-18

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Docs source (1)
README.qmd
Show all practices
Research and citation (2)
CITATION.cffcodemeta.json
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 10,512 (70%)Rd 2,143 (14%)Vignettes 1,169 (8%)Markdown 1,078 (7%)Other 28 (0%)
Code characteristics
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

Loading call graph…

Lowest coverage

74 functions
FunctionCycloCoverage
spod_download_file10%
spod_get_zones_v130%
spod_interactive10%
spod_readline10%
spod_sf_st_read10%
spod_get_zones_v2622%

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Contributors (1)
Package Timeline

9 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.2.6Latest
    2026-06-07 · current release · diff ↗
  • 0.2.5
    2026-05-26 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.4
    2026-04-09 · diff ↗
  • 0.2.3
    2026-03-23 · diff ↗
  • 0.2.2
    2026-02-24 · diff ↗
  • 0.2.1
    2025-07-29 · diff ↗
  • 0.2.0
    2025-06-16 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.1
    2025-04-09 · diff ↗
  • 0.1.0
    2024-12-18
  • R
    R 4.4.0 released · 2024-04-24

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
Report a problem with this page →