%&&% | R Documentation |
bash
's &&
operator.The right-hand side (y
) is only evaluated if the left-hand side (x
) is identical to TRUE
.
Useful for verbosity (verbose %&&% message("Hello world!")
).
x %&&% y
x |
A logical scalar: left-hand side argument. |
y |
A right-hand side expression. |
y
if x
is TRUE
, else invisible(NULL)
TRUE %&&% message("printed")
FALSE %&&% message("not printed")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.