Run code conditional on knitting
1 | if_knitting(yes_expr, no_expr)
|
yes_expr, no_expr |
Expressions to run if knitr is running or if it is not running. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.