Learn R Programming

cleanr (version 1.1.3)

check_file_layout: Check a File's Layout

Description

Run all file_checks on a file.

Usage

check_file_layout(path, max_file_length = get_cleanr_options("max_file_length"), max_file_width = get_cleanr_options("max_file_width"))

Arguments

path
Path to the file to be checked.
max_file_length
max_file_width

Value

invisible(TRUE), but see Details.

Details

The function catches the messages of "cleanr"-conditions thrown by file_checks and, if it caught any, throws them.

Examples

Run this code
print(check_file_layout(system.file("source", "R", "checks.R",
                                    package = "cleanr")))

Run the code above in your browser using DataLab