makeClient: Define a DOM client.

Description Usage Arguments Details Value Author(s) See Also

Description

Define a DOM client for R to communicate with. Several predefined clients are provided.

Usage

1
2
3
4

Arguments

run

A function that will be called to initialise the client. This function should accept at least a url argument, but will also be passed arguments host, port, and tag.

kill

This function will be called to allow the client to shut itself down. It is not required to do anything.

ws

A logical indicating what sort of app the client will run.

Details

The predefined browserClient opens a window (or tab) for the default web browser, the phantomClient runs PhantomJS (a headless browser), and the rstudioClient works with the R Studio Viewer panel.

All clients create a web socket connection with R.

Value

A "DOMclient" object.

Author(s)

Paul Murrell

See Also

htmlPage


pmur002/DOM documentation built on May 25, 2019, 10:20 a.m.