run_app | R Documentation |
Use biproportional apportionment interactively in a shiny app
run_app(votes_matrix = NULL, district_seats = NULL)
votes_matrix |
optional votes_matrix to load upon start |
district_seats |
optional district_seats to load upon start |
Calling the function starts the shiny app
if(interactive()){
# You need to have the packages 'shiny' and 'shinyMatrix' installed to run the app
run_app()
# It's possible to load a matrix with the app
run_app(uri2020$votes_matrix, uri2020$seats_vector)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.