with_callAttr: with_callAttr

Description Usage Arguments Value Author(s) Examples

View source: R/with_callAttr.R

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 July 26, 2017, 6:04 p.m.