| tablerApp {tabler} | R Documentation |
Run a Tabler Application
Description
Launches a self-contained web application using httpuv for HTTP and WebSocket transport.
Usage
tablerApp(
ui,
server,
host = "127.0.0.1",
port = 3000L,
launch.browser = interactive()
)
Arguments
ui |
The UI definition — typically a call to page().
|
server |
A function with signature function(input, output, session).
|
host |
Host to listen on (default "127.0.0.1").
|
port |
Port number (default 3000L).
|
launch.browser |
Open a browser automatically when in an interactive session. |
Details
Protocol
The browser and server exchange plain JSON messages over a WebSocket at
/ws:
Browser → R:
{"type":"input","name":"<id>","value":<v>}R → Browser:
{"type":"output","id":"<id>","html":"<escaped HTML>"}
Reactive system
Uses tabler's own dependency-tracking reactive system (see reactive,
observe, reactiveVal, observeEvent).
Render functions (renderText, renderUI, renderPrint) are
assigned to output inside server.
Value
Invisibly, after the server is stopped.