cpp_assert | R Documentation |
Ensures that x respects several parameters
len |
IntegerVector, of allowed length for x. Default is NULL, for not checking this parameter. |
cla |
CharacterVector, of allowed classes of x. Default is NULL, for not checking this parameter. |
typ |
CharacterVector, of allowed types of x. Default is NULL, for not checking this parameter. |
Robject |
of allowed values for x (will be passed to cpp_allowed). Default is NULL, for not checking this parameter. |
fun |
CharacterVector, function to execute when mandatory parameters are not met. Default is "stop". Allowed are "stop","warning","message","return". fun is placed in cpp_assert() in order to check it is correct before being used in assert() function. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.