Learn R Programming

vegawidget (version 0.4.1)

vw_handler: Construct a vegawidget handler

Description

You will likely call one of the specific handler-constructors: vw_handler_signal(), vw_handler_event(), in conjunction with vw_handler_add_effect().

Usage

vw_handler(args, body_value, body_effect)

Arguments

args

character, vector of names for the arguments for the handler

body_value

character, body of the value part of the handler

body_effect

character, body of the effect part of the handler

Value

object with S3 class vw_handler

Details

The handler has three parts:

  • args arguments to the handler

  • body_value the body of a function of the args, returns a value

  • body_effect the body of a function of the value, x, performs a side-effect

See Also

vw_handler_signal(), vw_handler_event(), vw_handler_add_effect()