Style text
style_text(text, configuration = list())
(character
) the text to style
(list
) Configuration for formatting. Default list()
.
(character
) the text formatted as R code
This function is vectorized.
To see possible configuration options, see get_default_config()
.
code <- "function(){}"
style_text(code)
#> [1] "function() {}\n"
code <- c("function(){}", "A<-7")
style_text(code)
#> [1] "function() {}\n" "A <- 7\n"