record: Record as flow graph

Description Usage Arguments Value

View source: R/record.R

Description

Record the evaluation of an R expression as a flow graph.

Usage

1
2
3
4
5
6
7
record(x, env = rlang::caller_env(), ...)

record_file(x, env = rlang::caller_env(), ...)

record_expr(x, env = rlang::caller_env(), out = NULL, cwd = NULL,
  annotate = FALSE, annotations = NULL, data = annotate,
  node_data = data, port_data = data, port_values = FALSE)

Arguments

x

(unevaluated) expression

env

evaluation environment

out

file path or connection in which to write flow graph as GraphML

cwd

working directory during evaluation (by default, the current working directory)

annotate

whether to annotate the flow graph

annotations

annotation database or JSON source for annotations, if 'annotate' is enabled (by default, the Data Science Ontology via remote database)

data

convenience switch to store metadata (on nodes and ports)

node_data

whether to store function metadata as node data

port_data

whether to store object metadata as port data

port_values

whether to store object values as port data

Value

A flow graph, of class wiring_diagram, for the evaluation.


IBM/rflowgraph documentation built on Sept. 12, 2019, 7:45 p.m.