Create a
cobertura-compliant XML report following this DTD.
Because there are two DTDs called coverage-04.dtd and some tools do not seem to
adhere to either of them, the parser you're using may balk at the file. Please see
this github discussion for
context. Where covr doesn't provide a coverage metric (branch coverage,
complexity), a zero is reported.
to_cobertura(cov, filename = "cobertura.xml")the coverage object returned from package_coverage()
the name of the Cobertura XML file
Note: This functionality requires the xml2 package be installed.