Description Details Author(s) References Examples
The websockets package is a native HTML 5 WebSocket implementation for R supporting most IETF draft protocols.
The R/Websockets interface provides exposes the basic HTML 5 Websocket API to the R language. It lets R directly interact with web pages without going through server middleware layers.
The basic procedure for initializing the R/Websockets interface is:
Load the library.
Initialize with create_server
.
Define desired callback functions to respond to events with setCallback
.
Service events with service
.
B. W. Lewis <blewis@illposed.net> Maintainer: B. W. Lewis <blewis@illposed.net>
http://dev.w3.org/html5/websockets/
1 2 | # Run the demos to see a few examples:
# demo(package='websockets')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.