Browse Source

fixed pkg ref

master
boB Rudis 5 years ago
parent
commit
55326f2d77
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 5
      R/jdbc.r
  2. 8
      man/metis.lite.Rd

5
R/jdbc.r

@ -22,7 +22,6 @@
OTHER = 1111
)
stats::setNames(
0:6,
c("OFF", "FATAL", "ERROR", "WARNING", "INFO", "DEBUG", "TRACE")
@ -49,7 +48,7 @@ Athena <- function(identifier.quote = '`') {
JDBC(
driverClass = "com.simba.athena.jdbc.Driver",
system.file("java", "AthenaJDBC42_2.0.6.jar", package = "metis"),
system.file("java", "AthenaJDBC42_2.0.6.jar", package = "metis.lite"),
identifier.quote = identifier.quote
) -> drv
@ -98,8 +97,6 @@ setMethod(
if (!(log_level %in% 0:6)) log_level <- .ll_trans[log_level]
callNextMethod(
drv,
conn_string,

8
man/metis.lite.Rd

@ -21,6 +21,14 @@ loaded so you either need to remember to put it at the top of all scripts _or_ s
in your local #' `~/.Rprofile` and/or sitewide `Rprofile`:
Since R 3.5 (I don't remember this happening in R 3.4.x) signals sent from interrupting
Athena JDBC calls crash the R #' interpreter. You need to set the `-Xrs` option to avoid
signals being passed on to the JVM owner. That has to be done _#' before_ `rJava` is
loaded so you either need to remember to put it at the top of all scripts _or_ stick this
in your local #' `~/.Rprofile` and/or sitewide `Rprofile`:
if (!grepl("-Xrs", getOption("java.parameters", ""))) {
options(
"java.parameters" = c(getOption("java.parameters", default = NULL), "-Xrs")

Loading…
Cancel
Save