From a547548829b71db9ecfc6031b567df977b5d3e18 Mon Sep 17 00:00:00 2001 From: Greg Freedman Ellis Date: Thu, 26 Oct 2023 15:14:54 -0500 Subject: [PATCH 1/2] normalize install_path --- R/covr.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/covr.R b/R/covr.R index 93a09b5c..e52ccb6d 100644 --- a/R/covr.R +++ b/R/covr.R @@ -409,6 +409,8 @@ package_coverage <- function(path = ".", } dir.create(install_path) + # tools::testInstalledPackage requires normalized install_path (#517) + install_path <- normalize_path(install_path) flags <- getOption("covr.flags") From 9df7095cf6df3a43cf8e1a9102a3eb6d2989462a Mon Sep 17 00:00:00 2001 From: Greg Freedman Ellis Date: Mon, 20 Nov 2023 10:58:49 -0600 Subject: [PATCH 2/2] update NEWS --- NEWS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/NEWS.md b/NEWS.md index b16e43d5..58783f8a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,5 @@ # covr (development version) +* Fix a bug preventing `package_coverage()` from running tests when `install_path` is set to a relative path (@gergness, #517, #548). # covr 3.6.3