Description Usage Arguments Details Value See Also Examples
Reads an XML file given by ref
and path
and interprets to
produce a module
.
1 2 | loadModule(name, ref, path = NULL, namespaces = c(oa =
"http://www.openapi.org/2014/"))
|
name |
Name of module |
ref |
Module location or filename or a |
path |
(Optional) Search path if |
namespaces |
Namespaces used in XML document |
If the module XML file is not valid OpenAPI module XML this function will return an error.
If path
is not set and conduit needs to search for the file
the default search paths are used.
module
list
1 2 3 4 5 6 7 8 9 10 11 | ## load a module from XML given by absolute of relative file path
mod1xml <- system.file("extdata", "simpleGraph", "createGraph.xml",
package = "conduit")
mod1 <- loadModule(name = "createGraph", ref = mod1xml)
## load a module by searching for 'ref'
srch1 <- system.file("extdata", package = "conduit")
srch1
mod2 <- loadModule(name = "layoutGraph", ref = "layoutGraph.xml",
path = srch1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.