← Back to all sparks
T

tidyBdE

ANALYTICS
Velocity0.0

Retrieve Time Series Data from Banco de Espaa

A Banco de España CSV scraper just learned to query the bank's live statistics API.

economic-dataspainapi-accessggplot2-scalesopen-data
Current state
tidyBdE pulls Banco de España macroeconomic series into tidy R data frames and ships ggplot2 scales in the bank's house colors. Its whole history ran on bulk CSV downloads; 0.7.0 adds bde_series_api_latest() and bde_series_api_load() to query the bank's Statistics web service directly, with wide and long output, metadata extraction and time-range validation. The same release reached 100% line coverage.
Where it's heading
Most releases in this feed are the package chasing Banco de España's own churn — series identifiers change upstream and the indicator wrappers get repointed. The API functions break that pattern by removing the bulk-file dependency for the first time, and the new csv_manual vignette reads like documentation of the legacy path rather than the preferred one. The maintainer is applying the same cli, roxygen2 and AI-assisted refactor pass seen across their other Spanish open-data packages.
Prediction
Expect the indicator wrappers to migrate onto the API functions, which would end the recurring identifier-tracking releases; the bde_ind_db documentation already carries the API series code alongside the CSV identifiers.

Recent moves

  1. 1mo ago

    Live Statistics API access replaces bulk CSV as the entry point

    ⚡ SPARK

    The release that changes how tidyBdE gets its data: two Statistics web service functions land alongside the existing bulk-CSV path, and bde_ind_db gains the API series code so the indicator wrappers can follow. It also completes the maintainer's cli and roxygen2 refactor and reaches full line coverage.

    View source ↗
  2. 2mo ago

    CSV encoding now detected automatically

    Uses readr::guess_encoding() when reading external CSV files instead of assuming an encoding, plus a documentation pass. A patch on the bulk-file path the API functions would supersede weeks later.

    View source ↗
  3. 4mo ago

    Vignettes migrate to Quarto; CPI series repointed

    Moves the vignettes to Quarto and updates the series code behind bde_ind_cpi_var(). The second half is the routine upstream-identifier tracking that dominates this package's history.

    View source ↗
  4. 7mo ago

    R 4.1 minimum and a documentation pass

    Raises the minimum R version to 4.1.0 and refreshes documentation, with the remainder of the release being CI action bumps.

    View source ↗
  5. 1y ago

    Indicators move onto a single series database

    Rebases bde_indicators on the new bde_ind_db dataset so the underlying series identifiers are visible in one place instead of scattered through wrapper functions. A maintainability change that later made the API migration legible — bde_ind_db is where the API series codes were added.

    View source ↗
  6. 1y ago

    Quarterly GDP indicator repointed after upstream change

    Updates bde_ind_gdp_quarterly() because the underlying Banco de España identifier changed. A representative entry in the long run of releases that exist purely to keep one indicator resolving.

    View source ↗