Skip to contents

Export the fully merged code tree(s)

Usage

export_fullyMergedCodeTrees(x, file)

Arguments

x

A parsed source(s) object.

file

The file to save to.

Value

Invisibly, NULL.

Examples

### 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
);