Closed dgkf closed 1 week ago
@dgkf Are you running R 4.4?
I've been troubleshooting what looks to be the same failure for diffobj as well as for a few other packages (data.table, mrgsolve, and nanotime). I hit into these when running the checks for https://mpn.metworx.com packages under R 4.4 rather of than R 4.3.
Based on bisecting with an R source build, I'm pretty confident that this is an interaction with R's revision 84538: 990fe3d8a1 (getParseData() - for first-file objects, 2023-06-14). That was part of the R 4.4.0 release.
Here are some links associated with that commit:
https://github.com/r-lib/covr/blob/3ec2edfcae8f621465f7c977c669a642310559a3/R/parse_data.R#L138-L141
[ +cc @krlmlr ]
@kyleam Thanks for sharing! Yeah, I was testing against 4.4.1 specifically.
I've had limited bandwidth to pursue this bug further, but since filing I've successfully reproduced old covr
results on older R versions indicating that this is likely an artifact of a base R change. You definitely seem to be on the right track here.
Yeah, I was testing against 4.4.1 specifically.
Thanks for confirming.
It looks like @MichaelChirico reported the same failure in gh-576.
And there's the related gh-567, where @mcol pointed to the same R 4.4.0 change as the culprit (revision 84538, 990fe3d8a1).
Identified this odd bug when trying to run
covr
againstdiffobj
. It's unclear to me why this is popping up for this package.Coverage tallying finishes successfully, but when applying exclusions will produce the error:
There's a single trace in the coverage trace data frame with a
NA
first_line
(among other columns), and this can also be see in the pre-transformedcoverage
object. When debugging the coverage traces before applying exclusions, one trace contains: