vistributions 0.2.1
CRAN release: 2026-10-16
Bug Fixes
-
vdist_normal_plot()now properly scales the x-axis grid to spanmean ± 4 * sd(BUG-01). -
vdist_f_perc()adapts upper x-axis limit dynamically beyond 4.0 when quantiles exceed the default plotting range (BUG-02). -
vdist_t_prob()handles negative percentile values (perc <= -5) without “wrong sign in ‘by’ argument” sequence error (BUG-03). -
vdist_chisquare_plot()ensures shaded fill polygon coordinates match the full extent ofxaxis_range(BUG-04). - Guarded theoretical standard deviation calculation for the F distribution against division-by-zero when denominator degrees of freedom is less than or equal to 4 (
den_df <= 4) (BUG-05). -
vdist_t_prob(type = "both")corrects color mapping and annotation placement so left/right shaded tails and central body match their respective regions (BUG-06). -
check_positive()now strictly enforces positive values (val <= 0), rejecting zero and negative inputs (BUG-07). -
check_suggests()formats informative error messages identifying the missing package prior to aborting execution (BUG-08). -
vdist_binom_prob()validates numeric types forn,p, andsbefore performing range checks (BUG-09). -
check_range()replaces bitwise|with logical||to eliminate scalar evaluation warnings in modern R (BUG-10). - Visual test snapshot names for
vdist_t_prob()interval and both types are properly aligned (BUG-11). - Removed unprompted network polling (
available.packages()) and interactive prompts during package startup in.onAttach(); retained rotating educational tips (BUG-12). -
vdist_normal_perc()scales x-axis bounds dynamically with standard deviation (BUG-13). -
vdist_binom_prob(type = "upper")strictly shades bars wherex >= s(BUG-14). -
vdist_binom_prob(type = "exact")matches success counts via integer equality rather than floating-point density comparison (BUG-15). -
vdist_t_prob(type = "upper")aligns text annotation colors with polygon fill colors (BUG-16). - Added missing positive degrees of freedom validations across t, F, and chi-square functions (BUG-17).
- F distribution normal approximation overlay is strictly clamped to non-negative support (
x >= 0) (BUG-18). -
vdist_binom_perc()allows percentile inputtpacross the full valid range (0, 1) rather than capping at 0.5 (BUG-19).
Documentation & Vignettes
- Fixed pedagogical and numerical discrepancies in
vignettes/introduction-to-vistributions.Rmd:- Corrected Normal 15th percentile problem cutoff (
0.15instead of0.85). - Aligned Binomial sample size ( consistently).
- Synchronized Chi-square question text with lower-tail probability evaluation.
- Aligned Student’s t 95% interval problem (
0.95instead of0.8). - Fixed inversion of Student’s t
intervalvsbothprobability examples. - Standardized knitr chunk options (
fig.align = 'center'). - Corrected typographic errors.
- Corrected Normal 15th percentile problem cutoff (
- Added explicit
@returndocumentation across all exported plotting and calculation functions. - Added
.github/CONTRIBUTING.md, issue templates, PR template, and upgradedCODE_OF_CONDUCT.mdto Contributor Covenant v2.1.
Package Hygiene & Infrastructure
- Removed stale SVG files in
tests/figs/and updated test suite to testthat 3rd edition (Config/testthat/edition: 3). - Bumped dependency requirement to
R (>= 4.1.0). - Removed unused
magrittrdependency fromImports:. - Configured automated
pkgdownwebsite deployment via Netlify.
