check_directory {cleanr} | R Documentation |
Check a Directory
Description
Run check_file
on files in a directory.
Usage
check_directory(path, pattern = "\\.[rR]$", recursive = FALSE, ...)
Arguments
path |
Path to the directory to be checked. |
pattern |
A pattern to search files with, see |
recursive |
Search the directory recursively?
See |
... |
Arguments to be passed to |
Details
The function catches the messages of "cleanr"-conditions
throw
n by check_file
and, if it caught any,
throw
s them.
Value
Invisibly
TRUE
,
but see Details.
See Also
Other wrappers:
check_file_layout()
,
check_file()
,
check_function_layout()
,
check_functions_in_file()
,
check_package()
Examples
# load internal functions first.
load_internal_functions("cleanr")
print(cleanr::check_directory(system.file("source", "R", package = "cleanr"),
max_num_arguments = 8, max_file_width = 90,
max_file_length = 350,
check_return = FALSE))
[Package cleanr version 1.4.0 Index]