pfa_expr: pfa_expr

Description Usage Arguments Value Examples

Description

Convert a quoted R expression into a list of lists that can be inserted into PFA

Usage

1
2
pfa_expr(expr, symbols = list(), cells = list(), pools = list(),
  fcns = list(), env = parent.frame())

Arguments

expr

quoted R expression (e.g. quote(2 + 2))

symbols

list of symbol names that would be in scope when evaluating this expression

cells

list of cell names that would be in scope when evaluating this expression

pools

list of pool names that would be in scope when evaluating this expression

fcns

list of function names that would be in scope when evaluating this expression

env

environment for resolving unrecognized symbols as substitutions

Value

a list of lists representing a fragment of a PFA document

Examples

1
pfa_expr(quote(2 + 2))

Example output

$`+`
$`+`[[1]]
[1] 2

$`+`[[2]]
[1] 2

aurelius documentation built on May 2, 2019, 3:43 a.m.