Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

Arguments

name

the name of an argument as a character string.

Examples

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

pkgmaker

Development Utilities for R Packages

v0.32.2
GPL (>= 2)
Authors
Renaud Gaujoux [aut, cre]
Initial release
2020-10-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.