config.js

Description

Build Javascript configuration

Usage

1
2
3
4
5
6
config.js(app.prefix = "/custom/RAPS", client.r.url = file.path(app.prefix,
  "R"), client.rest.url = "",
  template.file = system.file("config-template.js", package =
  "AnalysisPageServer"), static = FALSE, parameter.collection.url = if
  (static) "" else "params", page.collection.url = if (static) "" else
  "pages")

Arguments

app.prefix

Prefix for the path to your application. This will be used as the value for the "history.root" parameter in the Javascript file, and also to build the default client.r.url.

client.r.url

Location of R resources. Default: file.path(app.prefix, "R").

client.rest.url

Location of Sloth REST resources. Default: "". This is a poorly documented feature that most people should ignore.

template.file

Path to template file for config.js. Default is taken from "inst" directory of AnalysisPageServer package.

static

Boolean, default FALSE. Controls the default values for parameter.collection.url and page.collection.url.

parameter.collection.url

Default: If static = TRUE then "" else "params"

page.collection.url

Default: If static = TRUE then "" else "pages"

Details

Build Javascript configuration. This function returns Javascript which can be used as the config.js file for the front-end client.

The only reason to call this directly would be to set up specialized deployments.

Value

Charvec of Javascript

Author(s)

Brad Friedman

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.