From b85959bdfa4540291149094878aaf8923ee9d6ec Mon Sep 17 00:00:00 2001 From: Noam Ross Date: Tue, 14 Nov 2023 11:30:38 -0500 Subject: [PATCH] Fix minio install path --- tests/testthat/setup.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testthat/setup.R b/tests/testthat/setup.R index 30a43f9..26b3663 100644 --- a/tests/testthat/setup.R +++ b/tests/testthat/setup.R @@ -1,4 +1,4 @@ -#Sys.setenv("RELIC_TEST_S3"="true") +Sys.setenv("RELIC_TEST_S3"="true") withr::local_envvar( "R_USER_CACHE_DIR" = tempdir()) @@ -8,10 +8,10 @@ if(nzchar(Sys.getenv("RELIC_TEST_S3"))) { s3_dir <- file_temp("s3_cache") dir_create(s3_dir) - mc_dir <- tools::R_user_dir("relic-test", "data") + mc_dir <- file.path(find.package("minioclient"), "mc_bin") dir_create(mc_dir) # Set minioclient directory to package directory so it is cached with packages - withr::local_options(list("minioclient.dir"=file.path(find.package("minioclient"), "mc_bin"))) + withr::local_options(list("minioclient.dir" = mc_dir)) minioclient::install_mc() minioclient::install_minio_server()