← Back to all sparks
H

healthyR.ts

ANALYTICS
Velocity0.0

R package healthyR.ts by spsanderson — release notes from GitHub.

healthyR.ts keeps adding time-series helpers, then quietly breaks the old ones to modernise them.

time serieshealthyversestationarityggplot2breaking changesr package
Current state
A time-series companion in the healthyverse family, shipping helper functions in batches: growth-rate vectors, an ADF test and auto_stationarize() in 0.2.11, then five log and differencing transforms in 0.3.0, and a random-walk plot in 0.3.2. Alongside the additions runs a steady stream of breaking cleanups — invisible returns dropped, R 4.1 required for the native pipe, and ts_ma_plot() refactored onto ggplot2 facets with its xts output removed and its return value cut from six items to two.
Where it's heading
Two threads, both consistent. The functional one is coverage of the stationarity workflow — transform, test, auto-stationarize, plot — assembled function by function rather than as a single API. The structural one is convergence on ggplot2 and tidy conventions, retiring xts objects and multi-object return lists as it goes. The package is not afraid to break return shapes to get there, so upgrades are not drop-in.
Prediction
Expect the remaining functions that still return xts objects or bundled lists to get the same ggplot2-only treatment, since ts_ma_plot() was refactored on exactly that rationale.

Recent moves

  1. 6mo ago

    Random walk plot added; ts_ma_plot drops xts for ggplot2 facets

    Adds ts_random_walk_plot() for side-by-side random-variable and cumulative-path facets, and refactors ts_ma_plot() onto ggplot2::facet_wrap(), dropping its xts plotting and cutting the return from six objects to two. R 4.1 is now required. The ggplot2 consolidation continues at the cost of a breaking return shape.

    View source ↗
  2. 1y ago

    Invisible returns dropped; random walk and vva plot fixes

    Drops invisible returns as a breaking change, fixes ts_random_walk() generating three runs below a run count of two, and corrects ts_vva_plot() cumulative sums and lagged differences. A timetk holiday-signature step is removed after unexplained recycling errors.

    View source ↗
  3. 2y ago

    Five log and differencing transform utilities added

    Adds five transform utilities — log, single and double differencing, and their log variants — plus attributes on ts_growth_rate_vec() output and a parsnip auto_arima engine path when tuning is off. Fills in the manual half of the stationarity workflow that auto_stationarize() automates.

    View source ↗
  4. 2y ago

    Stationarity testing and auto_stationarize added

    Adds ts_growth_rate_vec(), ts_adf_test(), ts_growth_rate_augment() and auto_stationarize(). The release where stationarity testing and correction became first-class rather than something the user assembled.

    View source ↗
  5. 2y ago

    Single example fix

    A single upstream example fix contributed against rsample. No functional change.

    View source ↗
  6. 3y ago

    Boilerplate fitting uses show_best directly

    Changes the boilerplate fitting functions to take the single best tuning result rather than sorting everything and slicing. Internal tidying.

    View source ↗