This function checks if a given string adheres to snake_case naming
conventions. By default (strict = TRUE), it only allows lowercase letters
separated by underscores. If strict is FALSE, uppercase letters are also
permitted.
Usage
isSnakeCase(x, strict = TRUE)
Value
TRUE if the string is snake_case according to the specified
strictness, FALSE otherwise.
Arguments
x
A character string to check.
strict
Logical indicating whether the string should strictly contain
only lowercase letters (TRUE) or can include uppercase ones (FALSE).
Default is TRUE.