README.md

shinycalculator

A calculator in a Shiny app

Install

Install the app from GitHub using:

# install.packages("remotes")
remotes::install_github("grddavies/shinycalculator")

Run

Run the app using:

shinycalculator::run_app()

Why?

I developed this app as a resource for teaching how to test R code using testthat and shiny apps using shinytest. Have a look here to see how the app is launched in a headless browser session using shinytest (and PhantomJS). A session is then simulated using the methods associated with the app object, and the expected behaviour tested using testthat.

Why else?

I'd like to point out some things (as well as the tests) which I think are cool about it:



grddavies/shinycalculator documentation built on Jan. 8, 2022, 12:07 a.m.