Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

set_spaces

Helper for setting spaces


Description

Helper for setting spaces

Usage

set_spaces(spaces_after_prefix, force_one)

Arguments

spaces_after_prefix

An integer vector with the number of spaces after the prefix.

force_one

Whether spaces_after_prefix should be set to one in all cases.

Value

An integer vector of length spaces_after_prefix, which is either one (if force_one = TRUE) or space_after_prefix with all values below one set to one.

Numeric vector indicating the number of spaces.


styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.