with_callAttr: with_callAttr

Description Usage Arguments Value Author(s) Examples

Description

Capture the System Call For Functions That Don't Already Do So

Usage

1
with_callAttr(expr, f)

Arguments

expr

An expression to evaluate and capture as a call.

f

The frame number, specified as an integer. Passed directly to sys.call.

Value

The expected output of expr with an attribute named 'call', accessible with attr(expr, 'call').

Author(s)

Jon Katz

Examples

1
2
test.expr <- with_callAttr(cbind(x=1:4, y=rnorm(4)), 0)
attr(test.expr,'call')

jonkatz2/shinyAddOns documentation built on May 19, 2019, 7:30 p.m.