From ae52f2f96927c93cbdc9e48e72706dbd5117f726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Sat, 16 Feb 2019 21:59:00 +0000 Subject: [PATCH] Simplify pkgdepends test fixture path We are only running these in check() now, anyway. --- tests/pkgdepends/helper-fixtures.R | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/pkgdepends/helper-fixtures.R b/tests/pkgdepends/helper-fixtures.R index ce07f185d..bb3e68c28 100644 --- a/tests/pkgdepends/helper-fixtures.R +++ b/tests/pkgdepends/helper-fixtures.R @@ -46,15 +46,7 @@ fixtures <- list( ) fixture_dir <- function() { - ## If run from R CMD check, it might give an error, - ## so fall back to the current directory being tests/testthat - tryCatch( - file.path( - rprojroot::find_package_root_file(), - "tests", "pkgdepends", "fixtures" - ), - error = function(e) "fixtures" - ) + "fixtures" } get_fixture <- function(file) {