From 21d76604579474220526ea96b51f4498c176df31 Mon Sep 17 00:00:00 2001 From: Alex Axthelm Date: Thu, 21 Mar 2024 12:31:58 +0100 Subject: [PATCH] Attempt fixing windows paths --- tests/testthat/test-get_package_info.R | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-get_package_info.R b/tests/testthat/test-get_package_info.R index 18b0902d..c8d0f8ad 100644 --- a/tests/testthat/test-get_package_info.R +++ b/tests/testthat/test-get_package_info.R @@ -99,7 +99,13 @@ expect_package_info <- function( ) testthat::expect_match( package_info[[package_identical]][["remotepkgref"]], - remotepkgref_match + # gsub is used to make windows path work + gsub( + x = remotepkgref_match, + pattern = "\\", + replacement = "\\\\", + fixed = TRUE + ) ) testthat::expect_identical( package_info[[package_identical]][["remoteref"]],