verifyFunctionName: Verify function name

View source: R/verifyFunctionName.R

verifyFunctionNameR Documentation

Verify function name

Description

Function name must comply with a policy. This function allows to check compliance.

Usage

verifyFunctionName(name_s = "aSimpleFunctionName", strictSyntax_b_1 = TRUE)

Arguments

name_s

The function name to be checked

strictSyntax_b_1

A boolean value. When TRUE, allowed character set is [A-Za-z0-9]+. A function name must start with a lowercase letter. The name is required to be camel cased, although this cannot be checked.

When FALSE, allowed character set is [A-Za-z0-9_.]+. Classic R function naming applies.

Value

A boolean value, either TRUE or FALSE.

Author(s)

Fabien Gelineau <neonira@gmail.com>

Maintainer: Fabien Gelineau <neonira@gmail.com>

See Also

Refer to defineEvaluationModes.

Examples

##---- typical case ----
verifyFunctionName('matrix')
verifyFunctionName('matrix', FALSE)

wyz.code.offensiveProgramming documentation built on Sept. 25, 2023, 9:05 a.m.