The Buy Vs Rent Thingamajig is a web-based application that helps users understand whether it would be better long term renting or buying a house with a mortgage. The application is built with R Shiny and deployed using shinylive. Check out the live application at https://shiny.thecoatlessprofessor.com/buy-vs-rent/
With the shiny app, you can:
- Explore the financial implications of renting vs buying a home
- Visualize costs over time with interactive plots
- Compare different scenarios based on user inputs
This application is deployed using shinylive, allowing it to run directly in the browser without requiring an R server. Shinylive converts the R code to WebAssembly, making it possible to run R applications entirely client-side.
- Clone the repository:
git clone https://github.com/coatless-shiny/buy-vs-rent.git
-
Open the
buy-vs-rent.Rproj
-
Install required R packages:
install.packages(c("shiny", "bslib", "dplyr", "DT", "plotly"))
- Run the application:
shiny::runApp()
- Check if the application can be converted to
{shinylive}
:
shinylive::export(".", "_site")
- Built using the R Shiny framework
- Uses the bslib package for Bootstrap 5 theming
- Deployed using shinylive for browser-based execution