Learn R Programming

lint (version 0.3)

test_style: Test a patten for consistency.

Description

Test a patten for consistency.

Usage

test_style(check, ti, only.results = F)
autotest_style(check.name, only.results = FALSE)

Arguments

check
a style check
ti
the test info data
only.results
if true returns results but does not check for correspondence. For debugging.
check.name
the name of the test as a string.

autotest_style uses the .testinfo.<> object to automatically test styles. The test info object should be a list with $lines and $results. The '$lines' element is the input lines and $results is the find formated data.frame.

Value

either NULL or throws an error for use with test_that