Learn R Programming

adaptalint (version 0.2.4)

extract_style: Find style of a file

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

extract_style(filename)

Arguments

filename

path to the file of interest

Value

a data_frame with columns lint, count, total_lints and adjusted

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab