Skip to content

coursekata

0.21.0Package record

Packages and Functions for 'CourseKata' Courses

0packages depend
6.5Kdownloads / year
92.6%test coverage
13/13flavors OK

Overview

About

Easily install and load all packages and functions used in 'CourseKata' courses. Aid teaching with helper functions and augment generic functions to provide cohesion between the network of packages. Learn more about 'CourseKata' at https://www.coursekata.org.

Changes in 0.21.0

Breaking changes

  • coursekata now requires ggplot2 4.0.2 and ggformula 1.0.0 or later. The compatibility paths for the older graphics stack have been removed.
  • Plot helpers now require object =, show_cutoffs() requires show_labels =, and stat_cutoff() uses part =. The retired plot, labels, and func arguments are no longer translated. Intentional gf_*() aliases remain.
  • Line layers use linewidth for line width. A supplied size is translated for compatibility, and an explicit linewidth takes precedence. Point, text, and annotation-marker sizes are unchanged.

Native ggplot2 layers

  • Add geom_model() and stat_model() for fitted and inferred models. The exported GeomModel and StatModel extensions now also power gf_model().
Show all changes in 0.21.0Hide the rest of the changes in 0.21.0
  • Add geom_resid(), geom_square_resid(), geom_reduce(), geom_square_reduce(), stat_resid(), and stat_reduce(). The ggplot2 and ggformula interfaces share model planning, prediction, and drawing. Facets, omitted rows, inherited mappings, weights, orientation, and jitter now follow the same contract through either interface.
  • Add geom_b() for annotating a ggplot2 model layer with its coefficients. It uses the same coefficient planning as gf_b() and gf_coef().
  • Add geom_squareplot() and stat_squareplot() for the countable squareplot drawn by gf_squareplot(). Counts, mappings, delayed aesthetics, coordinates, and layer data now pass through one ggplot2 lifecycle.
  • Add stat_sd_ruler() beneath gf_sd_ruler(), and complete the distribution annotation surface with stat_dist_mean(), stat_cutoff(), geom_cutoff(), guide_cutoff(), and their exported ggplot2 extension classes. Native and formula interfaces now share their calculations and na.rm = FALSE default.

Plot annotations and themes

  • Rebuild show_dgp() with position guides. Population and estimate frames stay outside the data panel and remain aligned after scale, coordinate, zoom, and facet changes.
  • show_cutoffs() preserves the numeric axis and draws scale-aligned triangles, leaders, and translucent callouts in the panel. Labels use compact lanes and reflow in narrow or flipped panels; leaders fall back to elbow connections when a direct route does not fit.
  • Coefficient labels avoid their arrows, segments, and b0 marks, including with transposed formulas, reversed scales, and flipped coordinates.
  • Residuals stay aligned with jittered points across facets when jitter width or height uses its default. Seeded position_jitter() is supported by the native layers while fitted endpoints and grand means remain fixed.
  • Discrete palette defaults use ggplot2 4 theme settings. Set palette.colour.discrete and palette.fill.discrete in theme(), or add scale_discrete_coursekata() when colour and fill should share one scale. Loading and unloading the CourseKata theme restores the caller's settings.
  • Model layers resolve ggplot2's themed defaults even when coursekata is used through namespace-qualified calls without attaching the package.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 12.1 min · r-devel-linux-x86_64-debian-clang
Status changes
  • OK13 OKNow
  • OK7 OK2026-08-23
  • ERROR13 OK, 1 ERROR2026-04-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.21.0
READMEYes · 662 wordsVignettesNoNEWSYes · 100% structured · mentions 0.21.0Citation fileNoWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
61 (2 internal)includes a package overview page
Examples that run
100%29 run in a plain check
Exported functions with examples
64%
Documented parameters
77%
Return-value docs
82%
Help pages citing references
7%

Downloads

6.5K
CRAN downloads in the past year
Rank #4,985 · ~18/day · ~545/mo
Daily download trend is not available in this view yet.
1.1K30 days
1.6K90 days
6.5K1 year
Compare downloads with other packages →
Also on138 r2u15 autocran2K conda_forge

Repository

6Stars
4Forks
0Open issues
0Open PRs
3Releases
467Commits
2Commit identities
License file reads as GPL-3.0 · 467 commits · Last activity 2026-09-22 · 0% stars, 30d · Default branch at 0.21.0.9000, ahead of CRAN 0.21.0 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
80%
Median days to close, 50 most recently updated closed issues
120
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-08-23 · 52026-09-04 · 6
PracticesBeta

13 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/coursekata/coursekata-r on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Contributing guide
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-22 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Lint, format, editor (3)
lintrVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
32 external dependencies (excludes base and recommended)

Installing coursekata adds 82 packages (37 with compiled code, 78 MB of source tarballs). Heaviest: stringi 11 MB, ggformula 6.0 MB, ggplot2 6.0 MB.

Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (4)
Maintainer since 0.14.0 (2023), Author
Author
Copyright holder · added in 0.20.1
Releases (10)

Pick two releases to compare their code metrics.

  • 0.21.0Latest
    record
    2026-09-21 · current release · diff ↗ ·
    added 24 exports
    GeomCutoff, GeomModel, GuideCutoff, GuideDgp, StatDistMean, StatModel, StatReduce, geom_b, geom_cutoff, geom_model, geom_reduce, geom_resid, geom_square_reduce, geom_square_resid, geom_squareplot, guide_cutoff, guide_dgp, stat_cutoff, stat_dist_mean, stat_model, stat_reduce, stat_resid, stat_sd_ruler, stat_squareplot
  • unarchivedReturned to CRAN
    2026-08-22
  • 0.20.1
    record
    2026-08-22 · diff ↗ ·
    removed 1 export
    .conflicts.OK
    added 14 exports
    GeomResid, GeomSquareResid, GeomSquareplot, StatCutoff, StatResid, StatSdRuler, StatSquareplot, gf_b, gf_coef, gf_reduce, gf_square_reduce, gf_squareduce, show_dgp, show_mean
  • archivedRemoved from CRAN
    2026-05-11
    issues were not corrected despite reminders
  • R
    R 4.6.0 released · 2026-04-24
  • 0.19.2
    record
    2026-03-10 · diff ↗ ·
    added 8 exports
    .conflicts.OK, gf_resid_fun, gf_sd_ruler, gf_square_resid, gf_square_resid_fun, gf_squareplot, outer, show_cutoffs
  • 0.19.0
    record
    2025-07-16 · diff ↗ ·
    added 2 exports
    gf_resid, gf_squaresid
  • R
    R 4.5.0 released · 2025-04-11
  • 0.18.1
    record
    2024-12-12 · diff ↗
  • 0.18.0
    record
    2024-08-16 · diff ↗
  • unarchivedReturned to CRAN
    2024-05-26
  • 0.17.0
    record
    2024-05-26 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • archivedRemoved from CRAN
    2024-01-13
    issues were not corrected in time
  • 0.15.0
    record
    2023-12-14 · diff ↗
  • 0.14.1
    record
    2023-10-27 · diff ↗
Show 2 earlier eventsHide 2 earlier events
  • 0.14.0
    record
    2023-10-12
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-10-12
Total releases
10 / 3 yrs
License
GPL (>= 3) OSI · relicensed from AGPL (>= 3) in 0.20.1
Minimum R
≥ 4.1
Bundled data
31 KB / 14 files
Download size
454 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("coursekata")
Blake, A., CourseKata, Son, J., & Stigler, J. (2026). coursekata: Packages and Functions for 'CourseKata' Courses (Version 0.21.0) [Computer software]. https://doi.org/10.32614/CRAN.package.coursekata

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for coursekata version 0.21.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy