Learn R Programming

DSAIRM (version 0.5.0)

generate_shinyinput: A helper function that takes a model and generates the shiny UI elements for the analyze tab

Description

This function generates numeric shiny UI inputs for a supplied model. This is a helper function called by the shiny app.

Usage

generate_shinyinput(mbmodel, otherinputs, packagename, output)

Arguments

mbmodel

a name of a file/function or a modelbuilder model structure

otherinputs

a list of other inputs to include

packagename

name of package using this function

output

shiny output structure

Value

No direct return. output structure is modified to contain text for display in a Shiny UI

Details

This function is called by the Shiny app to produce the Shiny input UI elements. If mbmodel is an object, it is assumed to be a mbmodel type and will be parsed to create the UI elements. If mbmodel is a character, it is assumed to be the name of a function which will be parsed to create UI elements. Non-numeric arguments of functions are removed.