servePhantasus {phantasus} | R Documentation

## Serve phantasus.

### Description

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

### Usage

    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

    ## Not run:
    servePhantasus()

    ## End(Not run)

[Package phantasus version 1.10.0 Index]