Learn R Programming

formods (version 0.2.1)

render_str: 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 = "")

Value

String containing the evaled as a character or the original string

Arguments

estr

String to render.

Examples

Run this code
res = render_str(estr="ls()")

Run the code above in your browser using DataLab