Skip to content

coatless-shiny/buy-vs-rent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buy Vs Rent Thingamajig

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

Deployment

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.

Local Development Environment

  1. Clone the repository:
git clone https://github.com/coatless-shiny/buy-vs-rent.git
  1. Open the buy-vs-rent.Rproj

  2. Install required R packages:

install.packages(c("shiny", "bslib", "dplyr", "DT", "plotly"))
  1. Run the application:
shiny::runApp()
  1. Check if the application can be converted to {shinylive}:
shinylive::export(".", "_site")

Acknowledgments

  • Built using the R Shiny framework
  • Uses the bslib package for Bootstrap 5 theming
  • Deployed using shinylive for browser-based execution

Releases

No releases published

Packages

No packages published

Languages