gatherArgInfo: Extract a variable from argument information across calls

Description Usage Arguments Value Author(s) See Also

View source: R/argInfo.R

Description

This function extracts one piece of information from each of the calls collected via collectArgInfo via trace.

Usage

1
gatherArgInfo(x, var, paramNames = names(x[[1]]))

Arguments

x

the list obtained from each call to the function being traced and each element is a list corresponding to each parameter/formal argument in that function

var

the name of the variable to extract from the list of call information. For the detault information function getParamInfo, this should be one of class, type, length, nrow and ncol.

paramNames

the names of the parameters which is typically taken from the call information but can be provided by the caller if appropriate.

Value

A data frame with as many columns as there are parameters/formal arguments in the function that was traced.

Author(s)

Duncan Temple Lang

See Also

collectArgInfo


duncantl/CallCounter documentation built on Jan. 20, 2020, 5:16 a.m.