From 639d6a9d0a38567526c3974dbca116875d80bc7d Mon Sep 17 00:00:00 2001 From: Adam Black Date: Thu, 19 Aug 2021 07:35:41 -0400 Subject: [PATCH] debug github actions --- tests/setup.R | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/setup.R b/tests/setup.R index b9ab91b..9f2f09d 100644 --- a/tests/setup.R +++ b/tests/setup.R @@ -1,8 +1,17 @@ # Download the JDBC drivers used in the tests # oldJarFolder <- Sys.getenv("DATABASECONNECTOR_JAR_FOLDER") -Sys.setenv("DATABASECONNECTOR_JAR_FOLDER" = file.path(tempdir(check = TRUE), "drivers")) -DatabaseConnector::downloadJdbcDrivers("postgresql") + +driverPath <- file.path(Sys.getenv("HOME"), "drivers") +if(!dir.exists(driverPath)) dir.create(driverPath) +Sys.setenv("DATABASECONNECTOR_JAR_FOLDER" = driverPath) +DatabaseConnector::downloadJdbcDrivers("postgresql", pathToDriver = driverPath) + +print(Sys.getenv("DATABASECONNECTOR_JAR_FOLDER")) +list.files(driverPath) +# if(Sys.getenv("DATABASECONNECTOR_JAR_FOLDER") == "") { + # driverPath <- file.path(Sys.getenv("HOME"), "drivers") +# } # downloadJdbcDrivers("sql server") # downloadJdbcDrivers("oracle")