missingArgHandler: Handle Missing Arguments in Function

View source: R/missingArgHandler.R

missingArgHandlerR Documentation

Handle Missing Arguments in Function

Description

Replaces the missing argument with the default value. This is an internal function and is currently not exported in the package.

Usage

missingArgHandler(argMissed, argDefault)

Arguments

argMissed

This is the argument that needs to be handled.

argDefault

This is the default value of the argument that is missing in the function called.

Details

This function plays the role of error handler by setting the default values of the arguments when a function is called without specifying any arguments.

Value

The default value of the missing argument.


conjurer documentation built on May 1, 2022, 9:05 a.m.