failed_positions: Positions of check failures in the source code

View source: R/api.R

failed_positionsR Documentation

Positions of check failures in the source code

Description

Note that not all checks refer to the source code. For these the result will be NULL.

Usage

failed_positions(gp)

Arguments

gp

gp output.

Details

For the ones that do, the results is a list, one for each failure. Since the same check can fail multiple times. A single failure is a list with entries: filename, line_number, column_number, ranges. ranges is a list of pairs of start and end positions for each line involved in the check.

Value

A list of lists of positions. See details below.


MangoTheCat/goodpractice documentation built on Sept. 5, 2022, 2 p.m.