is_valid_name | R Documentation |
Function checks if string meets requirements for a single, valid, non-empty
R variable name. In case of incalid name, a box wit error message is thrown,
error message is written to R Commander window and result FALSE is returned.
Oterwise, TRUE is returned.
is_valit_name
- checks character validity.
is_empty_name
- does not check character validity.
is_valid_name(name, parent = CommanderWindow())
name |
(character) a single string. |
parent |
(tkwin object) a parent Tcl/Tk window. |
Logical value TRUE if string meets requirements, FALSE - otherwise.
## Not run: \donttest{
is_valid_name("a")
is_valid_name("")
is_valid_name("|||")
is_empty_name("a")
is_empty_name("")
is_empty_name("|||")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.