Learn R Programming

scrutiny (version 0.6.1)

check_args_disabled: Check that disabled arguments are not specified

Description

If the user of the function factory specified its .args_disabled argument, check_args_disabled() enforces this ban.

Usage

check_args_disabled(args_disabled)

Value

No return value; might throw an error.

Arguments

args_disabled

String. One or more names of arguments of the function applied within the factory-made function.

Details

More precisely, it throws an error if the user of the factory-made function specified one or more arguments which the user of the function factory had disabled via the latter's .args_disabled argument. The arguments would otherwise be passed on to the function that is mapped within the factory-made function.

on the use of the certain arguments of the function applied by the factory-made function.

Examples

Run this code
check_args_disabled(c("disabled1", "disabled2"))

Run the code above in your browser using DataLab