Learn R Programming

rEHR (version 1.0)

expand_string: Reads strings and expands sections wrapped in dotted parentheses

Description

This is a kind of inverse of bquote

Usage

expand_string(s, level = 3)

Arguments

s
a string
level
integer sets the parent frame level for evaluation

Examples

Run this code
a <- runif(10)
expand_string("The r code is .(a)")

Run the code above in your browser using DataLab