Learn R Programming

baseballr (version 2.0.0)

.capture_args: Capture the calling function's formal arguments

Description

Returns a named list of the bound formal arguments (excluding ...) of the calling function, suitable for passing to .report_api_error() / .report_api_warning(). Tolerates ...-only / arg-less wrappers (where names(formals()) is NULL).

Usage

.capture_args()

Arguments

Value

Named list. Empty list if the caller has no non-... formals.