app_server {GenEst} | R Documentation |
The GenEst server definition function
Description
This suite of functions defines the server-side program for
the GenEst user interface (UI). See the "GenEst Graphic User Interface"
vignette for a more complete detailing of the codebase underlying
the GenEst UI.
GenEstServer
: main server function
expressed within the application.
Usage
GenEstServer(input, output, session)
reaction(eventName)
reactionMessageRun(eventName)
reactionMessageDone(eventName)
eventReaction(eventName, rv, input, output, session)
Arguments
input |
|
output |
|
session |
Environment for the GenEst GUI. |
eventName |
Character name of the event. One of "clear_all", "file_SE", "file_SE_clear", "file_CP", "file_CP_clear", "file_SS", "file_SS_clear", "file_DWP", "file_DWP_clear", "file_CO", "file_CO_clear", "class", "obsSE", "predsSE", "run_SE", "run_SE_clear", "outSEclass", "outSEp", "outSEk", "ltp", "fta", "predsCP", "run_CP", "run_CP_clear", "outCPclass", "outCPdist", "outCPl", "outCPs", "run_M", "run_M_clear", "split_M", "split_M_clear", "transpose_split", "run_g", "run_g_clear", or "outgclass". |
rv |
reactive variable |
Details
GenEstServer
is used as the main server function, and is
therefore included in the server.R
script of the app. This
function is not used in a standard R function sense, in that it does
not return a value and is not used on its own to have side effects.
The code of the function has two parts:
preamble that defines all the necessary variables and options
-
observeEvent
calls, one for each event in the application. Each call toobserveEvent
includes theeventExpr
(event expression) as the first argument and thehandlerExpr
(handler expression) as the second argument, which is an evaluated (viaeval
) block of code returned fromreaction
for the specific event, as well as any other control switch arguments needed (such asignoreNULL
).