Code Projects
R Packages
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]shinypak: Quickly access the Shiny applications in the Shiny App-Packages (book) [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]
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]
Sites
- Shiny Frameworks: Shiny app demos with three popular frameworks (
golem,leprechaun, andrhino) [Repo]
Shiny Apps/Packages
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]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]
Apps/packages for testing
noap Testing a Shiny app (not in an R package) with
testthat[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]
Mastering Shiny App-Packages (for testing)
These are Shiny app-packages I’ve developed for various testing patterns. All use the code/apps covered in Mastering Shiny.
Mastering Shiny t
estServer()app-package (mstsap) is a collection of tests usingtestthatandshiny::testServer()The modules and application inmstsapcome from the Shiny modules chapter of Mastering Shiny [Repo]Mastering Shiny shinytest2 app-package (msst2ap) demonstrates how to test a Shiny app-package using
testthatandshinytest2. All examples come from the Modules chapter of Mastering Shiny. [Repo]