Learn R Programming

wyz.code.rdoc (version 1.1.19)

generateOptionSexpr: Generate Option Sexpr

Description

Generation option Sexpr in R documentation

Usage

generateOptionSexpr(options_s_1, topicName_s_1, escapeBraces_b_1 = FALSE)

Arguments

options_s_1

A single string value that is generally R code used to set expression options

topicName_s_1

A single string value that is the generally R code

escapeBraces_b_1

A single boolean value, asking to escape braces

Value

A single string, containing one option Sexpr. See references and examples below.

References

Refer to Writing R extensions section 2.12, to know more about using Sexpr handling in R documentation.

Examples

Run this code
# NOT RUN {
generateOptionSexpr('echo=TRUE', 'x <- 1')
#[1] "\\Sexpr[echo=TRUE]{x <- 1}"
# }

Run the code above in your browser using DataLab