Description Usage Arguments Value Examples
View source: R/f0.rbsb1.code.r
When x
is character, then it is printed as well as
message
and according to fatal
the program can be
stopped.
1 | check4valid(x, message=NULL, fatal=TRUE)
|
x |
object to be checked. |
message |
Some additional message to be issued before stopping. |
fatal |
what to do when discovering a character? TRUE: this function prints the message and stops; FALSE: this function returns the message as a character. |
When the check is validated returns TRUE. If not, according to
fatal
prints the message and stops or returns the message.
1 2 3 4 | rbsb3k("RESET"); # needed only for R checking, to be forgotten
check4valid("That's not good enough", fatal=FALSE);
check4valid(TRUE);
check4valid("A", "B C and so on.", fatal=FALSE);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.