hasArg2: Checking for Missing Arguments

Description Usage Arguments Examples

Description

This function is identical to hasArg, except that it accepts the argument name as a character string. This avoids to have a check NOTE about invisible binding variable.

Usage

1

Arguments

name

the name of an argument as a character string.

Examples

1
2
3
4
f <- function(...){ hasArg2('abc') }
f(a=1)
f(abc=1)
f(b=1)

pkgmaker documentation built on May 2, 2019, 4:42 p.m.