Skip to contents

shorthand function to switch model code based on choice of model input, and append model name

Usage

model_switch_conditions(input_model_select, mcode_model_choice)

Arguments

input_model_select

From the UI (input$model_select, input$model_select2)

mcode_model_choice

What to append at the end of the model code

Value

a switch for 'model_input' / 'model_input2'

Note

This function will be re-defined if "passworded_models" is sourced. An example "Test Passworded Model" is included for example.