Learn R Programming

tergo (version 0.1.9)

style_text: Style text

Description

Style text

Usage

style_text(text, configuration = list())

Value

(character) The text formatted as R code.

Arguments

text

(character) the text to style

configuration

(list) Configuration for formatting. Default list().

Details

This function is vectorized. To see possible configuration options, see get_default_config().

Examples

Run this code
code <- "a+b"
styled <- style_text(code)
code <- c("a+b", "A<-7")
styled <- style_text(code)

Run the code above in your browser using DataLab