indent_code: Indent code based on (curly) brackets

Description Usage Arguments Value See Also

View source: R/code_formatting.R

Description

Indent code based on (curly) brackets

Usage

1
indent_code(code, spaces, curly = TRUE)

Arguments

code

Stan code as a string. Ignored if file is not NULL.

spaces

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

curly

is indention done based on curly brackets?

Value

edited code

See Also

Other code formatting functions: place_includes(), trim_code()


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