Description Usage Arguments Details Value Author(s) Examples
Link into the app in a particular state
1 | analysis.page.link(page, params = list(), submit = TRUE, relative = "")
|
page |
|
params |
Named list of parameter values. If |
submit |
If submit is true then turn on a flag that says that the analysis should be submitted. Otherwise the link will open the primary parameter area. It is an error to supply params if submit = FALSE (this may be allowed in the future, but right now it is not supported.). Default: TRUE |
relative |
String. This string will be prepended to the relative URL beginning with "?". Default is empty string, so you would get something like "#page/2way/...". If you gave, for example "http://research.gene.com/expressionplot/app.html" then you would get "http://research.gene.com/expressionplot/app.html#page/2way/...". In RApache context the Global variable SERVER$headers_in$Referer is very useful for this. |
It is possible to encode the application state into a URL which will then be executed by the front end. There are 2 parts to the state, and each is supplied as one argument to this function (which then becomes one URL-encoded parameter in the link)
The name of the page within the app, such as "2way"
A subset of parameters and their values, already filled out
A relative URL beginning with "#", or a full URL if relative
is provide
Brad Friedman
1 | analysis.page.link("mypage", params=list(foo=1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.