Learn R Programming

cleanr (version 1.1.3)

cleanr-package: Helps You to Code Cleaner

Description

Check your R code for some of the most common layout flaws.

Arguments

Details

Many tried to teach us how to write code less dreadful, be it implicitly as B. W. Kernighan and D. M. Ritchie in The C Programming Language did, be it explicitly as R.C. Martin in Clean Code: A Handbook of Agile Software Craftsmanship did.

So we should check our code for files too long or wide, functions with too many lines, too wide lines, too many arguments or too many levels of nesting.

See Also

Packages codetools (https://cran.r-project.org/package=codetools), formatR (https://cran.r-project.org/package=formatR). and lintr (https://cran.r-project.org/package=lintr).