export_fullyMergedCodeTrees: Export the fully merged code tree(s)

View source: R/export_fullyMergedCodeTrees.R

export_fullyMergedCodeTreesR Documentation

Export the fully merged code tree(s)

Description

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

gitlab-r-packages-mirror/rock documentation built on Dec. 3, 2024, 5:40 p.m.