Show R Code
Variable names containing spaces are problematic and must be wrapped in backticks.
Also, they should not start with a number as R
may silently make it valid by changing it.
Therefore, we only allow alphanumeric characters with underscores.
The first character of the name
must be an alphabetic character and can be followed by alphanumeric characters.
check_simple_name(name)
Returns NULL
or raises error.
(character
) vector of names to check