FM_set_ui_msg {formods}R Documentation

Sets Message in State from UI Processing

Description

Any errors that need to be passed back to the user can be set with this function.

Usage

FM_set_ui_msg(state, msgs, append = FALSE)

Arguments

state

formods State object.

msgs

Character vector of messages.

append

When TRUE, msgs will be appended to any current messages. When FALSE (default) msgs will replace any existing messaages.

Value

state with ui message set.

Examples

# We need a module state object to use this function:
id="UD"
sess_res = UD_test_mksession(session=list(), id=id)
state = sess_res$state
state = FM_set_ui_msg(state, "Something happend.")

[Package formods version 0.1.4 Index]