Code
Books & Companion Packages
Shiny App-Packages: A book on building Shiny applications as R packages. [Repo]
sap: The code examples for the book and the Developing & Testing Your Shiny Application workshop (R in Pharma, 2023). Each branch holds the app at a different stage of development. [Repo]
shinypak: Quickly access the Shiny applications in the book. [Repo]
btwsap: The app-package from the
btwchapter, which connects a Shiny app-package to LLMs withbtwandellmer. [Repo]shragnar: Instructions for building a retrieval augmented generation (RAG) chatbot grounded in the book’s content with
ragnarandduckdb. [Repo]
Shiny for Python App-Packages: A book on building Shiny for Python applications as Python packages. Covers flat and src layouts, dependencies, data, documentation, testing with
pytest(modules, system tests, and test suites), debugging, logging, GitHub Actions, Docker, and deploying to shinyapps.io and PyPI. [Repo]Personal Finance: a field manual: A working reference for the day to day decisions that shape your financial life: budgeting, savings, borrowing, investing, taxes, insurance, and planning. Code examples use both R and Python. [Repo]
dev-fm-finance: Excel, Python, and R exercises for each chapter of the book. [Repo]
perfinr: The tested, documented versions of the R functions in the book, so you can use them without copying code out of a chapter. [Repo]
perfinpy: The Python counterpart to
perfinr. The functions keep the book’s names, arguments, and defaults, so code from a chapter runs unchanged. [Repo]
ggplot2: field manual: A field manual for building common (and less common) graphs with
ggplot2. Every example uses simulated data with a 90s throwback and a matching theme. [Repo]ggrewindr: A collection of late 90s
ggplot2themes (Game Boy greens, Surge, Tamagotchi, GeoCities, and more). Each palette is sampled from a freely licensed image of its reference and checked for text contrast and color blind separation. [Repo]fmutils: The small helpers the field manual books share (callout boxes, chapter status, the book theme, and font loading), so every chapter loads the same tested code. [Repo]
Shiny Frameworks: Shiny app demos with three popular frameworks (
golem,leprechaun, andrhino) [Repo]
R Packages
ggzoomer: A set of
ggplot2themes named after Gen Z aesthetics, trends, and objects (air fryers, boba, axolotls, capybaras, and more). Each palette is checked for contrast and color vision deficiency. [Repo]stackcallr: This package contains a few static-analysis utilities for Shiny applications and R packages. The primary function,
call_stack(), parses functions and prints a plain-text call tree showing how functions relate to one another — with no need to run the app. I’ve found this helps when writing documentation or submitting issues. [Repo]glockr: R package wrapper for
scc(Sloc, Cloc and Code) for counting blank lines, comment lines, and physical lines of source code. Written in pure Go [Repo]gerp: A teaching package for ‘Good Enough R Practices’, based on the excellent paper Good Enough Practices in Scientific Computing. Includes functions for project setup, file/folder naming, and literate programming. [Repo]
Data
wikimill: A Quarto website that scrapes Wikipedia “List of” pages and categories, then cleans and visualizes the data. It covers topics that shaped the millennial generation (recessions, wage stagnation, platforms that came and went) and Y2K era internet nostalgia (early browsers, worms, instant messengers). The scraping and cleaning code is in R and Python, side by side in tabs. [Repo]
dopingdata: Contains data from the United States Anti-Doping Agency for exploration, modeling, and visualizations. The datasets in this package are derived from the USADA website and the World Anti-Doping Agency (WADA) banned substances list [Repo]
Shiny Apps/Packages (R)
movexplR6: Shiny app-package demonstrating
R6objects in a Shiny app-package. [Repo]stocktipr: Shiny app-package for demonstrating tool-tip/hover info options [Repo]
stocktipr6: Similar to
stocktipr, but this Shiny app-package usesR6objects to demonstrate various tool-tip/hover info options [Repo]ttdviewer: Shiny app-package with downloadable #TidyTuesday dataset and reports [Repo]
dfdiffs: R package/Shiny app that implements SAS
proc compare. Compares two datasets and tells you 1) what rows are here now that weren’t here before? 2) What rows were here before that aren’t here now? and 3) What values have been changed? [Repo]
Shiny Apps/Packages (Python)
shypermaid: Shiny for Python (Core) app-package that renders Mermaid diagrams. Write Mermaid code in the editor and the diagram updates on the canvas. Includes theme, look, layout, and direction menus, pan and zoom, and SVG or PNG download. [Repo]
nostalgia_index: Python package and Shiny for Python app that measures which childhood toys, games, and athletes people are still looking up on Wikipedia. Pageviews from the Wikimedia REST API are normalized by total Wikipedia traffic, smoothed with a rolling median, and scaled so each article’s first 12 months equal 100. Includes a
nostalgiacommand line interface (nostalgia fetchandnostalgia run). [Repo]daily-dose: Shiny for Python app for browsing my personal workout log (2020 to 2024), converted from its original R Markdown site. Pick a random workout from the whole history, or see every workout logged on today’s date across all years. [Repo]
baseball-trajectory: Shiny for Python app-package for visualizing a baseball player’s career arc on a single metric (OPS, OBP, SLG, AVG, HR, or ISO for batters; ERA, WHIP, K/9, BB/9, or HR/9 for pitchers). Per-season stats come from the MLB Stats API, and the app fits a weighted quadratic aging curve with a 95% confidence band and a marked peak age. [Repo]
Testing Shiny
modsquad: Tests the modules from the Modules chapter of Mastering Shiny with
testthat,shiny::testServer(), andshinytest2. Combines two earlier app-packages,mstsap(testServer()tests) andmsst2ap(shinytest2tests). [Repo]utap Unit testing app package: Unit testing Shiny app-package for demonstrating
shinyutility function unit testing withtestthat[Repo]tsap t
estServer()app package: Shiny app-package for demonstrating integration tests with shiny’stestServer()function [Repo]noap: Testing a Shiny app (not in an R package) with
testthat[Repo]