View source: R/rk.JS.saveobj.R
rk.JS.saveobj | R Documentation |
Create JavaScript saveobject code from plugin XML
rk.JS.saveobj( pXML, R.objects = "initial", vars = TRUE, add.abbrev = FALSE, preview = FALSE, indent.by = rk.get.indent(), level = 2 )
pXML |
Either an object of class |
R.objects |
Character vector,
the names of the internal R objects to be saved. If not empty must have
the same length as <saveobject> nodes in the document, or be the keyword "initial",
in which case the
|
vars |
Logocal, whether the variables needed should also be defined in the JavaScript code. |
add.abbrev |
Logical,
if |
preview |
Logical, whether to prepare the JS code to be used in plugins with preview functionality, i.e., do not save objects while preview is active. |
indent.by |
Character string used to indent each entry if |
level |
Integer, which indentation level to use, minimum is 1. |
A character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.