GithubHelp home page GithubHelp logo

isabella232 / dplyr-snowflakedb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snowflakedb/dplyr-snowflakedb

0.0 0.0 0.0 50 KB

SnowflakeDB backend for dplyr

License: Apache License 2.0

Makefile 2.65% R 97.35%

dplyr-snowflakedb's Introduction

dplyr.snowflakedb

This R package extends dplyr to add backend support for SnowflakeDB. More details on dplyr can be found in the README page for the project.

R Environment Setup

The dplyr.snowflakedb connectivity to SnowflakeDB uses the RJDBC package, however, the rJava package needs to be installed and working with Java 8 to support the SnowflakeDB JDBC requirements. This may require:

  • installing Java 8
  • running R CMD javareconf so R uses the Java 8 for its JAVA_HOME
  • installing rJava from source so it can be linked against Java 8

If you are using R on Mac OS X, please see this wiki page for the necessary installation steps for rJava.

Once you have rJava installed and verified it is using Java 8, you can install dplyr and dependancies.

install.packages(c("RJDBC", "DBI", "dplyr"))

If you'd like some data to experiment with I'd recommend installing the following packages that most of the dplyr examples and vignettes use.

install.packages(c("nycflights13", "Lahman"))

Installing dplyr.snowflakedb

install.packages("devtools")
devtools::install_github("snowflakedb/dplyr-snowflakedb")

Example SnowflakeDB Connection

library(dplyr)
library(dplyr.snowflakedb)
options(dplyr.jdbc.classpath = "/home/snowman/Downloads/snowflake_jdbc.jar")

my_db <- src_snowflakedb(user = "snowman",
                         password = "letitsnow",
                         account = "acme",
                         opts = list(warehouse = "mywh",
                                     db = "mydb",
                                     schema = "public"))

Issues

Please file any issues or bugs you find using the project's issue page. Please include a minimal reproducible example where possible.

Contributing

If you find an issue and would like to fix it yourself, please do, and submit a pull request so it can be reviewed and merged.

Copyright and License

Copyright 2017 Snowflake Computing, Inc. Licensed under the Apache License, Version 2.0.

dplyr-snowflakedb's People

Contributors

binglihub avatar etduwx avatar gregrahn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.