covr icon indicating copy to clipboard operation
covr copied to clipboard

"Error: Fialure in [temp file path].Rout.fail" then gets deleted before I can look at the file when default `clean=TRUE` is set

Open pdbailey0 opened this issue 1 year ago • 0 comments

Thanks for this package, I've been appreciating it.

I ran covr::package_coverage() and got an Error: Failure in (a temp file) that was missing. This error suggests that there is a temp file that I can go see. There was not.

I believe this is because when clean is set to the default of TRUE the temp file I was just told to go look at gets deleted. A more user friendly error might test if clean is TRUE, if it is, say, add 'clean=FALSE' to the call to see the error instead of pointing to a file that then gets deleted.

Even better would be skipping the cleanup in on.exit() if there was an error that caused package_coverage to tell me to look at the error file so I don't have to run the whole command again.

pdbailey0 avatar Dec 11 '23 23:12 pdbailey0