Learn R Programming

cleanr (version 1.1.3)

check_file: Check a File

Description

Run check_functions_in_file and check_file_layout on a file.

Usage

check_file(path, ...)

Arguments

path
Path to the file to be checked.
...
Arguments to be passed to check_functions_in_file or check_file_layout.

Value

invisible(TRUE), but see Details.

Details

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

Examples

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

Run the code above in your browser using DataLab