openPage
creates a server and establishes a websocket connection between it and the current
R session. This allows commands exchange. In R use sendCommand
function to send and
execute JavaScript code on the server. On the server use jrc.sendCommand
function to send and
exectute R code in the current R session.
1 |
useViewer |
If |
rootDirectory |
A path to the root directory of the server. If |
startPage |
A path to the HTML file that should be opened, when the server is initialised.
This can be an absolute path to a local file, or it can be relative to the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.