Learn R Programming

⚠️There's a newer version (1.4.0) of this package.Take me there.

output: github_document

cleanr

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

Introduction

Please read the vignette or, after installation, the help page:

options(pager = "/bin/cat")
help("cleanr-package", package = "cleanr")

Installation

You can install cleanr from github with:

if (! require("devtools")) install.packages("devtools")
devtools::install_github("fvafrCU/cleanr")

cleanr is a fork

of coldr, which was a set of shell scripts I used to check the file layout (number of lines, width of lines and the like) of code files and somehow turned out to be an R package.

Copy Link

Version

Install

install.packages('cleanr')

Monthly Downloads

279

Version

1.1.3

License

BSD_2_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Andreas Dominik Cullmann

Last Published

January 18th, 2017

Functions in cleanr (1.1.3)

get_cleanr_options

Get options for cleanr
function_checks

Function Checks
check_file_layout

Check a File's Layout
check_functions_in_file

Check All Functions Defined in a File
get_function_body

get the body of a function
check_function_layout

Check a Function's Layout
check_directory

Check a Directory
file_checks

File Checks
cleanr-package

Helps You to Code Cleaner
check_file

Check a File
throw

throw a condition
tidy_findings

tidy findings
load_internal_functions

Load a Package's Internals
is_not_false

Test if an Object is not False