check_functions_in_file {cleanr}R Documentation

Check All Functions Defined in a File

Description

Run check_function_layout on all functions defined in a file.

Usage

check_functions_in_file(path, ...)

Arguments

path

Path to the file to be checked.

...

Arguments to be passed to check_function_layout.

Details

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

Value

invisible(TRUE), but see Details.

Examples

print(cleanr:::check_functions_in_file(system.file("source", "R", "utils.R",
                                                   package = "cleanr")))

[Package cleanr version 1.2.0 Index]