Skip to contents

Run a package app

Usage

run_app(
  which = c("risk-adjusted-returns", "purchasing-power"),
  res = 120,
  shinylive = FALSE
)

Arguments

which

A character. The name of the app to run. Currently available:

  • risk-adjusted-returns - Plotting risk-adjusted returns for various allocations to the risky asset allows you to find the optimal allocation.

  • purchasing-power - Plotting the effect of real interest rates (positive or negative) on the purchasing power of savings over time.

res

A numeric. The initial resolution of the plots.

shinylive

A logical. Whether to use shinylive for the app.

Value

A shiny::shinyApp() object if shinylive is TRUE. Runs the app if shinylive is FALSE with shiny::runApp().

Examples

if (FALSE) { # interactive()
run_app("risk-adjusted-returns")
run_app("purchasing-power")
}