args: Rewrite of args(), which also returns something workable for...

Description Usage Arguments Value

View source: R/Fixes-extensions.R

Description

The function args may return NULL for some primitives, e.g. '['. This function checks for that, and in that case returns the most general function possible: function(...) NULL Otherwise the return is identical

Usage

1

Arguments

name

A function, or a character string with the name of a function (which is found using the scope of the caller).

Value

Identical as that of args, except when called with a primitive, and args() returns NULL. In that case, an empty function


EmilBode/EmilMisc documentation built on Feb. 24, 2020, 4:11 p.m.