Learn R Programming

pkgmaker (version 0.32.10)

hasArg2: Checking for Missing Arguments

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

hasArg2(name)

Value

A logical flag.

Arguments

name

the name of an argument as a character string.

Examples

Run this code

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

Run the code above in your browser using DataLab