servePhantasus: Serve phantasus.

Description Usage Arguments Value Examples

View source: R/serve.R

Description

servePhantasus starts http server handling phantasus static files and opencpu server.

Usage

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
)

Arguments

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)

Value

Running instance of phantasus application.

Examples

1
2
3
4
## Not run: 
servePhantasus()

## End(Not run)

phantasus documentation built on Nov. 8, 2020, 6:39 p.m.