powered by
Run a package app
run_app( which = c("risk-adjusted-returns", "purchasing-power", "retirement-ruin"), res = 120, shinylive = FALSE )
A shiny::shinyApp() object if shinylive is TRUE. Runs the app if shinylive is FALSE with shiny::runApp().
shiny::shinyApp()
shinylive
TRUE
FALSE
shiny::runApp()
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.
risk-adjusted-returns
purchasing-power - Plotting the effect of real interest rates (positive or negative) on the purchasing power of savings over time.
purchasing-power
retirement-ruin - Plotting the probability of retirement ruin.
retirement-ruin
A numeric. The initial resolution of the plots.
A logical. Whether to use shinylive for the app.
if (FALSE) { # interactive() run_app("risk-adjusted-returns") run_app("purchasing-power") run_app("retirement-ruin") }
Run the code above in your browser using DataLab