install_r4np() has been redesigned:
pak to install packages, installing pak first if needed, and
falls back to install.packages() if pak is unavailable or fails.type = "both", which only works on Windows and macOS).dependencies = TRUE), which added hundreds of unneeded packages.cloud.r-project.org.install_r4np() now installs ggmosaic2 for mosaic plots, matching the
book. It replaces ggmosaic, which was archived on CRAN.
New vtest() runs Levene's test for homogeneity of variance on several
variables at once and returns the results as a tidy tibble. It mirrors
ntest(): variables are chosen with cols, groups with group (several
grouping variables are combined, e.g. for a two-way ANOVA), and inputs are
checked with clear error messages. The default center = "median" matches
car::leveneTest(); center = "mean" gives the original Levene's test.
The computation uses only stats, so car is not required.
install_r4np() now also installs learnr and gradethis, which the
interactive exercises need. gradethis is installed from r-universe; if
that fails, the other packages stay installed and a message shows how to
install it manually. The function now uses cli messages and returns the
installed package names invisibly.
Removed ggmosaic from install_r4np() and Suggests, as it was archived on
CRAN (2025-11-10) and broke R CMD check.
gradethis (used in the tutorials) is now found via
Additional_repositories (r-universe) instead of the non-CRAN Remotes
field.
Updated CITATION to use bibentry() and dataset sources to use \doi{}.
Updated the GitHub Actions R-CMD-check workflow to the current r-lib
standard (the retired ubuntu-20.04 runner left Linux checks queued
forever).
ntest() output is now called variable instead
of row_name, consistent with ntest_by().ntest_by() now gives the same clear error messages as ntest() for
invalid input, counts sample sizes per variable ignoring missing values,
rejects variables that are constant within a group, never tests the
grouping variable itself, and ignores any existing grouping of df
(with a short hint if it differs from group).cols and group in ntest() and ntest_by() now
explains that they take unquoted column names and tidyselect helpers, and
that df can be piped in. Examples no longer use \dontrun{}.ntest() now ungroups grouped data frames before testing, so grouping
variables are no longer tested by mistake. A hint suggests ntest_by() for
per-group tests.ntest() now checks its inputs before testing and gives clear error
messages when df is not a dataframe, cols is missing or selects no
variables, variables are not numeric, sample sizes are out of range, or a
variable is constant.ntest() and ntest_by() no longer use .data inside tidyselect
expressions, which was deprecated in tidyselect 1.2.0.ntest() and ntest_by() now import shapiro.test() from stats
explicitly (fixes an R CMD check NOTE).NEWS.md to track package changes.infer package to install_r4np() to support inference examples.wvs dataset containing a subset of the World Values Survey.install_r4np() to install companion resources.create_dr() helper to scaffold project folders.imdb_top_250 sample data for exercises.