apply_indent: Apply indention to code lines

Description Usage Arguments Value See Also

View source: R/code_formatting.R

Description

Apply indention to code lines

Usage

1
apply_indent(lines, arr, spaces, trim)

Arguments

lines

array of code lines

arr

an array returned by count_indent_lines

spaces

Number of spaces to use for indenting (has no effect if use_stanc is TRUE).

trim

if this is true, left trimming is done

Value

an edited array of code lines

See Also

Other code formatting helper functions: count_indent_lines(), justify_line()


jtimonen/stanbreaker documentation built on Jan. 20, 2021, 12:34 a.m.