Learn R Programming

vegawidget (version 0.4.1)

vw_handler_body_compose: Compose a JavaScript handler

Description

These functions are used to compose a vw_handler object into text that will be interpreted either as a complete JavaScript function, or a function-body.

Usage

vw_handler_body_compose(vw_handler, n_indent = 2L)

vw_handler_compose(vw_handler)

Arguments

vw_handler

vw_handler created using vw_handler_signal() or vw_handler_event()

n_indent

integer, number of spaces to indent the text of the body

Value

object with S3 class JS_EVAL, text for the function or function-body