Description Usage Arguments Value Examples
servePhantasus
starts http server handling phantasus static files
and opencpu server.
1 2 3 4 5 6 7 8 9 | servePhantasus(
host = "0.0.0.0",
port = 8000,
staticRoot = system.file("www/phantasus.js", package = "phantasus"),
cacheDir = tempdir(),
preloadedDir = NULL,
openInBrowser = TRUE,
quiet = TRUE
)
|
host |
Host to listen. |
port |
Port to listen. |
staticRoot |
Path to static files with phantasus.js (on local file system). |
cacheDir |
Full path to cache directory. |
preloadedDir |
Full path to directory with preloaded files. |
openInBrowser |
Boolean value which states if application will be automatically loaded in default browser. |
quiet |
Boolean value which states whether the connection log should be hidden (default: TRUE) |
Running instance of phantasus application.
1 2 3 4 | ## Not run:
servePhantasus()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.