Skip to content

spanishoddata

0.2.6Package record

Get Spanish Origin-Destination Data

0packages depend
4.3Kdownloads / year
86.2%test coverage
8/13flavors OK

Overview

About

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.

Changes in 0.2.6

Bug fixes

  • Improved Version 1 (2020-2021) metadata mapping to ensure redirected district files are correctly identified and added a check to alert the user if no data is found for the requested criteria.

From NEWS.md in the release

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  spanishoddata/R/internal-utils.R (.Names: 1)
'.Names' should be changed to 'names'.

CRAN check page ↗

Slowest check: 2.9 min · r-oldrel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTE2026-09-30
  • ERROR8 OK, 4 NOTE, 1 ERROR2026-09-04
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK13 OK2026-05-24
  • ERROR12 OK, 1 ERROR2026-05-17
Show 3 earlier changesHide 3 earlier changes
  • OK13 OK2026-05-15
  • ERROR12 OK, 1 ERROR2026-05-13
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.6
READMEYes · 2,297 wordsVignettesYes · 4 · staticNEWSYes · 100% structured · mentions 0.2.6Citation fileYes · cites a publicationWebsiteYes · pkgdown
Help pages
65 (50 internal)includes a package overview page
Examples that run
20%3 run in a plain check · 11 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
Exported functions with examples
100%
Documented parameters
94%
Return-value docs
100%
Help pages citing references
11% with a bibliography file

Downloads

4.3K
CRAN downloads in the past year
Rank #8,525 · ~12/day · ~357/mo
Daily download trend is not available in this view yet.
40230 days
1.1K90 days
4.3K1 year
Compare downloads with other packages →
Also on132 r2u2 autocran

Repository

48Stars
6Forks
14Open issues
0Open PRs
9Releases
682Commits
7Commit identities
cdrdatadata-packagemobilityorigin-destinationrstatsmobile-telephone-data
682 commits · Last activity 2026-09-21 · Default branch at 0.2.6.9000, ahead of CRAN 0.2.6 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
95%
Median days to close, 50 most recently updated closed issues
14
Median days to close, 50 most recently updated closed PRs
0

Forks over time

2026-07-14 · 52026-10-09 · 6
PracticesBeta

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

Checks run against github.com/ropenspain/spanishoddata on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Contributing guide
Docs source (4)
README.qmdpkgdown

GitHub Pages site last deployed 2026-10-10 · The repository has a site deploy workflow

pkgdown site last built 2026-09-21

Coverage (1)
Coverage reporting
Show all practicesHide 4 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Research and citation (2)
CITATION.cffcodemeta.json
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-06-05
    Pull request: opened by its own account
    Commits: 1 by its own account · at least 1 crediting it in the message
Review tools
  • Copilot code review
    Commits: at least 1 accepting its review suggestions
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
39 external dependencies (excludes base and recommended)

Installing spanishoddata adds 61 packages (43 with compiled code, 49 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, duckdb 4.6 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer since 0.1.0 (2024)
Releases (9)

Pick two releases to compare their code metrics.

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

Cite

Cite this package

Run in R for the authors' entry:

citation("spanishoddata")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.1177/23998083251415040.

The repository also keeps a CITATION.cff.

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 spanishoddata version 0.2.6 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-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