Syntax highlight R code
highlight(code, style = default_style())
Character vector, each element is one line of code.
Style functions, see default_style().
default_style()
Character vector, the highlighted code.
# NOT RUN { highlight(deparse(ls)) cat(highlight(deparse(ls)), sep = "\n") # }
Run the code above in your browser using DataCamp Workspace