check_file_layout {cleanr}R Documentation

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

See check_file_length.

max_file_width

See check_file_width.

Details

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

Value

invisible(TRUE), but see Details.

Examples

print(cleanr::check_file_layout(system.file("source", "R", "checks.R",
                                            package = "cleanr")))

[Package cleanr version 1.2.0 Index]