extract_style: Find style of a file

Description Usage Arguments Value Examples

View source: R/styles.R

Description

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.

Usage

1
extract_style(filename)

Arguments

filename

path to the file of interest

Value

a data_frame with columns lint, count, total_lints and adjusted

Examples

1
2
3
4
5
# 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)

adaptalint documentation built on Oct. 5, 2019, 9:05 a.m.