選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
48 行
1.7 KiB
48 行
1.7 KiB
#' Access and Query Amazon Athena via DBI/JDBC
|
|
#'
|
|
#' Methods are provides to connect to 'Amazon' 'Athena', lookup schemas/tables,
|
|
#' perform queries and retrieve query results. A lightweight 'RJDBC' implementation
|
|
#' is included along with an interface to the 'AWS' command-line utility.
|
|
#'
|
|
#' @name metis.lite
|
|
#'
|
|
#' @section IMPORTANT:
|
|
#'
|
|
#' 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")
|
|
#' )
|
|
#' }
|
|
#'
|
|
#' @md
|
|
#' @encoding UTF-8
|
|
#' @keywords internal
|
|
#' @docType package
|
|
#' @author Bob Rudis (bob@@rud.is)
|
|
#' @import RJDBC DBI bit64 dbplyr
|
|
#' @references [Simba Athena JDBC Driver with SQL Connector Installation and Configuration Guide](https://s3.amazonaws.com/athena-downloads/drivers/JDBC/SimbaAthenaJDBC_2.0.6/docs/Simba+Athena+JDBC+Driver+Install+and+Configuration+Guide.pdf)
|
|
NULL
|
|
|
|
|
|
#' Use Credentials from .aws/credentials File
|
|
#'
|
|
#' @md
|
|
#' @importFrom aws.signature use_credentials read_credentials
|
|
#' @references [aws.signature::use_credentials()] / [aws.signature::read_credentials()]
|
|
#' @name use_credentials
|
|
#' @rdname use_credentials
|
|
#' @inheritParams aws.signature::use_credentials
|
|
#' @export
|
|
NULL
|
|
|
|
#' @name read_credentials
|
|
#' @rdname use_credentials
|
|
#' @export
|
|
NULL
|
|
|