Learn R Programming

runExamplesWrapper (version 1.0)

balanceCurly: balanceCurly

Description

retrieve lines of text between '@examples' and matching curly braces

Usage

balanceCurly(v)

Value

returns lines of text between '@examples' and matching curly braces

Arguments

v

character vector

Examples

Run this code
v<-c("@examples{","xxx","}","{","{")
x<-balanceCurly(v)
cat(x,sep="\n")

Run the code above in your browser using DataLab