boB Rudis 9 months ago
parent
commit
439ca3503c
No known key found for this signature in database
4 changed files with 6 additions and 3 deletions
  1. 1
    2
      NEWS.md
  2. 3
    0
      R/zzz.R
  3. 1
    0
      inst/java/log4j.properties
  4. 1
    1
      tests/testthat/test-metis.R

+ 1
- 2
NEWS.md View File

@@ -1,8 +1,7 @@
1 1
 0.3.0
2 2
 =========
3 3
 
4
-- Added `sql_translate_env.AthenaConnection()`
5
-- Handles Athena JDBC column types!
4
+- Refactor
6 5
 
7 6
 0.2.0
8 7
 =========

+ 3
- 0
R/zzz.R View File

@@ -1,2 +1,5 @@
1 1
 .onLoad <- function(libname, pkgname) {
2
+  rJava::.jpackage(pkgname, jars = "*", lib.loc = libname)
3
+  rJava::.jpackage(pkgname, lib.loc = libname)
4
+  rJava::.jaddClassPath(dir(file.path(getwd(), "inst/java"), full.names = TRUE))
2 5
 }

+ 1
- 0
inst/java/log4j.properties View File

@@ -0,0 +1 @@
1
+log4j.rootLogger=ERROR

+ 1
- 1
tests/testthat/test-metis.R View File

@@ -4,7 +4,7 @@ drv <- metis::Athena()
4 4
 
5 5
 expect_is(drv, "AthenaDriver")
6 6
 
7
-skip_on_cran()
7
+skip_on_cran()https://github.com/hrbrmstr/metis/blob/master/tests/testthat/test-metis.R#L3-L15
8 8
 
9 9
 if (identical(Sys.getenv("TRAVIS"), "true")) {
10 10
 

Loading…
Cancel
Save