extract_style {adaptalint} | R Documentation |
Returns the absolute and relative counts of all lint errors found in the
file.
The resulting style data can be applied to another file with
lint_with_style
or lint_package_with_style
.
extract_style(filename)
filename |
path to the file of interest |
a data_frame with columns lint
, count
, total_lints
and adjusted
# Get the path to a file to check
path <- system.file("extdata", 'styles.R', package='adaptalint')
# Find out the profile of lints in this package
style <- extract_style(filename = path)