config.js {AnalysisPageServer} | R Documentation |
Build Javascript configuration
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")
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 |
Location of R resources. Default: |
client.rest.url |
Location of Sloth REST resources. Default: |
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 |
Default: If |
page.collection.url |
Default: If |
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.
Charvec of Javascript
Brad Friedman