rk.JS.header | R Documentation |
Generate JavaScript header object
rk.JS.header(title, ..., level = NULL, guess.getter = FALSE, .add = list())
title |
Either a character string or object of class |
... |
An optional number of additional info to add to the header. Each entry must be named |
level |
Integer, if not |
guess.getter |
Locigal,
if |
.add |
Same as |
A character string.
my.cbox <- rk.XML.cbox("This is a test") rk.JS.header("Test results", addFromUI=my.cbox) # let's assume we create an R object called "results" # in the plugin dialog, this is how you could fetch # portions of it to be added as a parameter in the output rk.JS.header( "Test results", add=c("Significance level", noquote="results[[\\\"alpha\\\"]]") ) # a dummy example using an rk.JS.ite object made with js() rk.JS.header( "Test results", add=c( "Significance level", js( if(my.cbox){ "this" } else { "that" }, keep.ite=TRUE ) ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.