Description Usage Arguments Details Value Examples
Save a module
to an XML file on disk. File is saved to the directory
named in targetDirectory
.
1 2 |
module |
|
targetDirectory |
destination directory |
filename |
Filename for resulting XML file |
The resulting XML file will be called ‘module$name
.xml’
unless another filename
is specified.
targetDirectory
must exist, or function exits with error. If no
targetDirectory
file is saved to current working directory.
resulting file location
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | targ1 <- tempdir()
## use a module's name for filename
mod1xml <- system.file("extdata", "simpleGraph", "createGraph.xml",
package = "conduit")
mod1 <- loadModule("createGraph",
ref = mod1xml)
saveModule(module = mod1, targetDirectory = targ1)
## specify a filename for the module XML
mod2xml <- system.file("extdata", "simpleGraph", "layoutGraph.xml",
package = "conduit")
mod2 <- loadModule("layoutGraph",
ref = mod2xml)
saveModule(module = mod2, targetDirectory = targ1,
filename = "myNewModule.xml")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.