gatherArgInfo: Extract a variable from argument information across calls

View source: R/argInfo.R

gatherArgInfoR Documentation

Extract a variable from argument information across calls

Description

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

Usage

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 Nov. 23, 2023, 3:38 p.m.