Skip to content

Support the new CSV and TXT data formats - #1

Merged
nramon merged 9 commits into
masterfrom
support-new-data-formats
Nov 23, 2026
Merged

nramon merged 9 commits into
masterfrom
support-new-data-formats

Conversation

@nramon

@nramon nramon commented Nov 23, 2026

Copy link
Copy Markdown
Owner

datos.madrid.es replaced the fixed-width files with CSV and TXT files, and the old download links no longer work. This PR updates the parser and the tooling accordingly and prepares version 2.0.0.

Breaking changes

  • The legacy fixed-width format is no longer supported.
  • The NO and NO2 magnitude codes were swapped (NO is 7, NO2 is 8), so the values returned for both magnitudes change. Checked against NOx, which is roughly NO2 + 1.53 * NO.
  • R 3.5.0 or later is required.

Changes

  • Parse the CSV (semicolon separated, with header, optional BOM) and TXT (comma separated, no header) formats, for daily and hourly data.
  • Remove the tidyr and dplyr dependencies; the parser only uses base R.
  • Sort the output by date.
  • Update the download URLs in the README.
  • Remove the devtools dependency; add deps and lint Makefile targets.
  • Fix the lint warnings and keep test coverage at 100%.
  • Move the CI from Travis to GitHub Actions.
  • Bump the version to 2.0.0.

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@nramon
nramon merged commit 459830d into master Nov 23, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant