diff --git a/NEWS.md b/NEWS.md index 12a2e7d..64d0245 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,8 +1,7 @@ 0.3.0 ========= -- Added `sql_translate_env.AthenaConnection()` -- Handles Athena JDBC column types! +- Refactor 0.2.0 ========= diff --git a/R/zzz.R b/R/zzz.R index da0e81e..e7303fb 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -1,2 +1,5 @@ .onLoad <- function(libname, pkgname) { + rJava::.jpackage(pkgname, jars = "*", lib.loc = libname) + rJava::.jpackage(pkgname, lib.loc = libname) + rJava::.jaddClassPath(dir(file.path(getwd(), "inst/java"), full.names = TRUE)) } diff --git a/inst/java/log4j.properties b/inst/java/log4j.properties new file mode 100644 index 0000000..e203ac4 --- /dev/null +++ b/inst/java/log4j.properties @@ -0,0 +1 @@ +log4j.rootLogger=ERROR \ No newline at end of file diff --git a/tests/testthat/test-metis.R b/tests/testthat/test-metis.R index e8933b4..ca8e3e7 100644 --- a/tests/testthat/test-metis.R +++ b/tests/testthat/test-metis.R @@ -4,7 +4,7 @@ drv <- metis::Athena() expect_is(drv, "AthenaDriver") -skip_on_cran() +skip_on_cran()https://github.com/hrbrmstr/metis/blob/master/tests/testthat/test-metis.R#L3-L15 if (identical(Sys.getenv("TRAVIS"), "true")) {