Description Usage Arguments Details Value Author(s) See Also Examples
Build an AnalysisPage service
1 2 3 | build.service(handler, param.set = default.service.paramset(handler),
annotate.plot = FALSE, annotate.data.frame = FALSE, no.plot = TRUE,
service = TRUE, skip.checks = TRUE, ...)
|
handler |
The handler function to convert |
param.set |
AnalysisPageParamSet for the handler. Default: |
annotate.plot |
Default: FALSE |
annotate.data.frame |
Default: FALSE |
no.plot |
Default: TRUE |
service |
Default: TRUE |
skip.checks |
Default: TRUE. This is passed through to |
... |
Further arguments to pass to |
Convert a functions into an AnalysisPage service. An AnalysisPage service is an AnalysisPage with the service flag set. That means that pages() will not return it, so it will not be directly available through the front end. The reason to do this would normally be so that it can be used to populate a combobox or other part of the website. In practice it also means that the return value will probably not use the AnalysisPageDataNode system—it is free to return some arbitrary JSON string or other text.
It is a wrapper for new.analysis.page
, and passes all of
its arguments through (but with different defaults now)
AnalysisPage
Brad Friedman
1 2 3 4 5 6 | poem.file <- system.file("examples/in-a-station-of-the-metro.html", package="AnalysisPageServer")
poem.html <- readLines(poem.file, warn = FALSE)
poem <- build.service(function() {
new.response(paste0(poem.html, "\n"),
content.type = "text/html")
}, name = "poem")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.