This function parses the shiny UI and gets input settings and combines those with other settings for a full definition of the model and settings that should be executed. This is a helper function.

generate_modelsettings(app_input, appsettings, appNames)

Arguments

app_input

a list of shiny GUI input

appsettings

current appsettings

appNames

character vector of app names, available in shiny server global environment upon app initialization

Value

modelsettings a list with model settings. List elements are:

modelsettings$apptitle - The name of the app that's being run.

modelsettings$simfunction - name of simulation function(s) as string.

modelsettings$simfunction2 - name of simulation function(s) as string.

modelsettings$is_mbmodel - indicate of simulation function has mbmodel structure modelsettings$modeltype - specify what kind of model should be run. Currently one of: _ode_, _discrete_, _stochastic_, _usanalysis_, _modelexploration_, _fit_.

For more than one model type, place _and_ between them.

modelsettings$plottype - 'Boxplot' or 'Scatterplot' , required for US app

Optinal list elements are:

List elements with names and values for inputs expected by simulation function. If not provided, defaults of simulator function are used.

modelsettings$plotscale - indicate which axis should be on a log scale (x, y or both). If not provided or set to '', no log scales are used.

modelsettings$nplots - indicate number of plots that should be produced (number of top list elements in result). If not provided, a single plot is assumed.

modelsettings$nreps - required for stochastic models to indicate numer of repeat simulations. If not provided, a single run will be done.

Details

This function returns specific settings for simulation runs as a list.