Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple R client for Treasure Data

License

NotificationsYou must be signed in to change notification settings

treasure-data/RTD

Repository files navigation

R-CMD-check

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.

Requirements

To upload data.frame from R, there are two options:

  1. embulk
  2. bulk-import

If you want to use embulk, ensure you've installed embulk and set PATH for it.

Install

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")

Example

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

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp