Added "add" and "remove" buttons for variables, flows, and paramters
app.R
, add_model_par
, add_model_var
, add_model_flow
Variables have dynamic display names
app.R
, generate_buildUI
, add_model_par
, add_model_var
, add_model_flow
Added a confirmation modal to confirm deletion of variables
app.R
, remove_model_variableModal
(this function was added)App doesn’t "forget" changes made to a model if the user navigates away from / back to the Build tab.
values$buildUiTrigger
was created for this purpose in app.R
. It is used to decide whether or not to generate the ui for the Build tab. The object is instantiated with a value of 0. If the user navigates to the Build tab, then the value is changed to 1. If a user uploads a model or chooses an example model, then the value is changed to 0. The Build tab's ui will only be regenerated if the buildUiTrigger
object has a value of 0.app.R
Improved indexing for variables, flows, and parameters.
values$masterVarDF
), and variables are removed by referencing their names instead of their numeric index.app.R
, generate_buildUI
, add_model_par
, add_model_var
, add_model_flow
, remove_model_var
, remove_model_par
, remove_model_flow
, check_model
, generate_model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.