Learn R Programming

languageserver (version 0.3.1)

style_text: edit code style

Description

This functions formats a list of text using styler::style_text() with the styler::tidyverse_style() style.

Usage

style_text(text, options, scope = "tokens", indentation = "")

Arguments

text

a vector of text

options

a named list of options, with a tabSize parameter

scope

the scope type used in styler::tidyverse_style

indentation

amount of whitespaces put at the begining of each line