tidy_file: Tidy a file

Description Usage Arguments Value

Description

Tidies a markdown file, called for it's side effect.

Usage

1
tidy_file(path, width = getOption("stylermd.line_width"))

Arguments

path

The path to the file.

width

The maximal lenght of a line. If length(width) > 1, the elements are used sequentially, one for each iteration. If there are more iterations than values of width, the last value of width is used for all remaining iterations.

Value

If the file has been changed (ignoring the class attribute), TRUE is returned, NA if an error occured and FALSE if it has not been changed.


lorenzwalthert/stylermd documentation built on May 5, 2019, 1:36 a.m.