Skip to content

HeatStressR 3.0.0

Choose a tag to compare

@zyf0717 zyf0717 released this 09 Oct 05:48

HeatStressR 3.0.0 introduces canonical snake_case APIs, shared validation and diagnostics, and new reference-backed heat-stress methods.

Breaking changes and migration

  • Requires R 4.1 or later and the authors' heatindex package (>= 0.0.2).
  • heat_indices() automatically selects all methods supported by supplied inputs, including numerical methods. Select methods explicitly for stable output columns and predictable computation.
  • Invalid physical inputs return NA with summary warnings. Only scalar expansion is supported; incompatible vector lengths raise errors.
  • Corrected NWS Heat Index calculations and timestamp handling also apply to deprecated 2.x adapters. Legacy endpoints remain available with once-per-session warnings; removal is planned no earlier than v4.0.0.

See the v3 migration guide and method documentation.

Changes

  • Added canonical snake_case index APIs, registry-driven method discovery and
    multi-index dispatch, scalar expansion, common row validation and diagnostics.
  • Added pressure-aware Romps thermodynamic liquid-water wet bulb and the 2026
    Lu Heat Index through the authors' heatindex package. Reference fixtures and
    reproducibility CI pin heatindex 0.0.2; runtime installations may use newer
    compatible versions.
  • Added separately named ABM and indoor simplified WBGT. Legacy swbgt remains
    the indoor formula, rather than a coefficient variant of ABM.
  • Corrected POSIXlt timezone normalization to preserve instants instead of
    interpreting local wall-clock fields as UTC, including legacy adapters.
  • Corrected the NWS low-humidity Heat Index adjustment, simple averaging and
    regression-selection procedure; corrected results also apply to legacy hi.
  • Added wbgt_liljegren with meaningful dew-point policy and grouped advanced
    controls, retaining the R batch solver, scalar fallback and PSOCK execution.
  • heat_indices now automatically selects all methods supported by supplied
    inputs, including numerical methods. Explicit selection preserves requested
    order. wind_10m and wind_2m are distinct; legacy wind is a deprecated 10 m alias.
  • Invalid physical/non-finite rows produce NA and summary warnings, including
    through compatibility adapters. Missing values remain silent. No general
    recycling or silent wind/radiation/RH clamping is performed.
  • Isolated all deprecated 2.x endpoints and legacy argument translations in
    R/compat-v2.R, with once-per-session warnings and a v4 removal manifest.
  • Removed attach-time networking, duplicate master metadata and assertthat.
    Minimum supported R is now 4.1. Historical author and GPL-3 notices remain.
  • Added a v3 migration guide, independent reference fixtures, boundary/input
    matrices, deprecation/core-independence checks and canonical benchmarks.

Install

remotes::install_github("zyf0717/HeatStressR@v3.0.0")

The attached HeatStressR_3.0.0.tar.gz is the built R source package. This GitHub release is separate from the CRAN release process.

Full changelog: v2.4.0...v3.0.0