fix_rscript {jss}R 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


[Package jss version 0.2-0 Index]