Data streams and event emitters for R.
emitter <- EventEmitter$new() emitter$on("foo", function() { print("bar") }) emitter$emit("foo") #> "bar"
stream <- create_read_stream("foo.bar") stream$on("data", function(x) { print(x) }) #> "foo"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.