Learn R Programming

cleanr (version 1.1.3)

check_functions_in_file: 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.

Value

invisible(TRUE), but see Details.

Details

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

Examples

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

Run the code above in your browser using DataLab