Learn R Programming

wyz.code.offensiveProgramming (version 1.1.24)

verifyFunctionName: 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)

Value

A boolean value, either TRUE or FALSE.

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.

Author

tools:::Rd_package_author("wyz.code.offensiveProgramming")

Maintainer: tools:::Rd_package_maintainer("wyz.code.offensiveProgramming")

See Also

Refer to defineEvaluationModes.

Examples

Run this code
##---- typical case ----
verifyFunctionName('matrix')
verifyFunctionName('matrix', FALSE)

Run the code above in your browser using DataLab