tidy_bugs: Tidy BUGS files

View source: R/tidy_bugs.R

tidy_bugsR Documentation

Tidy BUGS files

Description

This function cleans up the formatting

Usage

tidy_bugs(
  path = ".",
  arrow = TRUE,
  brace.newline = FALSE,
  indent = 2,
  wrap = TRUE,
  width.cutoff = 50
)

Arguments

path

location of file(s)

arrow

use the <- operator if TRUE, = otherwise

brace.newline

move braces to a new line if TRUE

indent

number of spaces to indent code blocks

wrap

whether to wrap comments to the linewidth determined by width.cutoff

width.cutoff

passed to deparse: integer in [20, 500] determining the cutoff at which line-breaking is tried


jmcurran/jaggR documentation built on Nov. 2, 2023, 11:04 a.m.