Releases: AAGI-AUS/AAGIPalettes
Releases · AAGI-AUS/AAGIPalettes
Release list
v0.0.3
v0.0.2
Bug fixes and internal changes
- Strengthened input validation in
aagi_palettes():nis now validated (scalar, finite, non-NA) before coercion;directionis validated before the overflow guards run. - Fixed overflow guard for
aagi_greens: previously capped at 7 stops instead of its actual maximum of 9 stops. - Added overflow guard for
aagi_RdYl, which has a 7-stop maximum; requests above 7 now warn and clamp correctly instead of silently returningNULL. - Replaced
ifelse(direction == 1, return(p), return(rev(p)))with idiomaticif/else; removed deadreturn(p)that followed it. - Fixed
interpolate_aagi_colours()colour validation: colours are now matched against all eight officialaagi_coloursnames rather than only the six listed in the parameter default. - Added
directionvalidation tointerpolate_aagi_colours()to match the behaviour already present inaagi_palettes(). - Simplified
display_aagi_cols(): moved then = 5Ldefault into the function signature, removing the runtimeNULLfallback. - Renamed test file
test-test-colours_as_hex.Rtotest-colours_as_hex.R - Reduced dependencies, no longer depends on {scales}, uses base R packages instead.