knitif | R Documentation |
Selects a text argument and returns the knitted result.
knitif(n, ..., envir = knit_global())
knit_select(n, ..., envir = knit_global())
n |
character: text argument to use |
... |
character: arguments to choose from |
envir |
environment: in which code chunks are to be evaluated (default: |
A character.
knitif(runif(1)<0.5, 'TRUE'="`r pi`", 'FALSE'="$\\pi=`r pi`$")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.