Learn R Programming

spartan (version 3.0.2)

check_boolean: Check that an argument that should be a boolean has been specified correctly

Description

Check that an argument that should be a boolean has been specified correctly

Usage

check_boolean(arguments, argument_name)

Arguments

arguments

List of the arguments provided to the called function

argument_name

Name of the argument, for inclusion in the error message

Value

Boolean stating the current status of the pre-execution checks, or FALSE if this check fails