| warn_int_div_impl | R Documentation |
Scans each element of code and issues an R warning for every
instance of literal integer division found (e.g. 3/4, 1/2).
Integer division in C++ truncates toward zero, so 3/4 evaluates to
0 and 7/3 evaluates to 2, which is rarely intended.
warn_int_div_impl(code, block)
code |
Character vector of source lines. |
block |
Name of the model block, included in the warning message. |
code unchanged (called for its side-effect warnings).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.