View source: R/export_fullyMergedCodeTrees.R
export_fullyMergedCodeTrees | R Documentation |
Export the fully merged code tree(s)
export_fullyMergedCodeTrees(x, file)
x |
A parsed source(s) object. |
file |
The file to save to. |
Invisibly, NULL
.
### Get path to example source
examplePath <-
system.file("extdata", package="rock");
### Get a path to one example file
exampleFile <-
file.path(examplePath, "example-1.rock");
### Load example source
loadedExample <- rock::parse_source(exampleFile);
tempFile <- tempfile(fileext = ".svg");
### Export merged code tree
export_fullyMergedCodeTrees(
loadedExample,
tempFile
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.