fix_rscript: Fix R Scripts to use JSS's Preferred Formatting

View source: R/fix_rscript.R

fix_rscriptR Documentation

Fix R Scripts to use JSS's Preferred Formatting

Description

The function fix_rscript is just a simple convenience interface to tidy_source, using certain argument settings. The code_lines function is a small utility for counting lines after removing comments and empty lines.

Usage

fix_rscript(file = NULL)

code_lines(path = ".", comment = "#")

Arguments

file

character. The .R script that should be fixed, by default Sys.glob("*.R") is used.

path

character specifying a directory with .R files.

comment

character for beginning comments.

See Also

tidy_source


jss documentation built on Sept. 9, 2022, 3:09 p.m.

Related to fix_rscript in jss...