- Notifications
You must be signed in to change notification settings - Fork1
Simple R client for Treasure Data
License
treasure-data/RTD
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
RTD is an official R client for Arm Treasure Data. It aims to make it simple to handle or connect from R to TD.
Since RTD covers only basic execution on TD, we recommend to useRPresto or RJDBC for querying.
To upload data.frame from R, there are two options:
- embulk
- bulk-import
If you want to use embulk, ensure you've installed embulk and set PATH for it.
As of version 0.4.1, RTD has been back to CRAN. You can install RTD as:
install.packages("RTD")You can install viadevtools::install_github for the latest development version.
install.packages("devtools")# Install devtools if neededdevtools::install_github("treasure-data/RTD@v0.4.1")
Or, you can use install-github.me instead like:
source("https://install-github.me/treasure-data/RTD@v0.4.1")See alsoRTD_example.Rmd orRPubs.
library(RTD)client<- Td(apikey=Sys.getenv("TD_API_KEY"),endpoint=Sys.getenv("TD_API_SERVER"))# Show list of databaseslist_databases(client)# Create databasecreate_database(client,"test")# Craete tablecreate_table(client,"test","example")# Delete tabledelete_table(client,"test","example")# Upload data.frame. Target database and table will be created automatically.td_upload(client,"test","mtcars",mtcars)# Drop databasedelete_database(client,"test")
About
Simple R client for Treasure Data
Topics
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.