render_str {formods} | R Documentation |
Evaluate R Code in String
Description
Attempts to evaluate a string as a chunk of R code. If that succeeds it will return the result. If not it will return the original text.
Usage
render_str(estr = "")
Arguments
estr |
String to render. |
Value
String containing the evaled as a character or the original string
Examples
res = render_str(estr="ls()")
[Package formods version 0.2.1 Index]