eval_content | R Documentation |
helper function for evaluating code from text
eval_content(x)
x |
any R object |
use "'r mean(c(2,3))'" to specify evaluating the mean(c(2,3))
.
If this syntax is not used, the values are passed through unaltered.
the return value from evaluating the function, or the raw input (unaltered) if there is no function to be evaluated.
eval_content("`r mean(c(2,3))`")
eval_content("`mean(c(2,3))`")
eval_content(list(c=3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.