covr supports a couple of different ways of excluding some or all of a file.
line_exclusions argument to
package_coverage() can be used
to exclude some or all of a file. This argument takes a list of filenames
or named ranges to exclude.
function_exclusions can be used to exclude R functions
based on regular expression(s). For example
print\\\.* can be used to
exclude all the print methods defined in a package from coverage.
In addition you can exclude lines from the coverage by putting special comments
in your source code. This can be done per line or by specifying a range.
The patterns used can be specified by the
exclude_end arguments to
package_coverage() or by setting the global