Description Usage Arguments Details Value Examples
This isn't absolutely necessary, but if you run the html
from a file://
you can't request other local
files. This server also provides some convenience
features like:
1 2 | start_server(base, appname = "r2d3",
browse = interactive())
|
base |
A directory specifying the base path where files are looked for. |
appname |
The name of the application - this is only needed if you want to server multiple r2d3 servers out of different directories. |
browse |
if |
If the file doesn't exist in the base
directory, we'll look in the installed package directory.
That way you don't need to worry about having
d3.js
etc installed.
If a html file doesn't exist, a template will be rendered that runs the r2d3 js using a json file of the matching name.
(invisibly) the Rook server.
1 | start_server(system.file("examples", package = "r2d3"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.