Simple TD API Client

Upload R data.frame to Arm Treasure Data, see <>. You can execute database or table handling for resources on Arm Treasure Data.

Travis build status

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 use RPresto or RJDBC for querying.


To upload data.frame from R, ensure you've installed embulk and set PATH for it.


You can install via devtools::install_github.

install.packages("devtools") # Install devtools if needed


See also RTD_example.Rmd or RPubs.

client <- Td(apikey=Sys.getenv("TD_API_KEY"), endpoint=Sys.getenv("TD_API_SERVER"))
# Show list of databases
# Create database
create_database(client, "test")
# Craete table
create_table(client, "test", "example")
# Delete table
delete_table(client, "test", "example")
# Upload data.frame. Target database and table will be created automatically.
td_upload(client, "test", "mtcars", mtcars)
# Drop database
delete_database(client, "test")


RTD 0.1.0

  • Use embulk instead of TD toolbelt.


  • First release for RTD.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.4.1 by Aki Ariga, a year ago

Report a bug at

Browse source code at

Authors: Aki Ariga [aut, cre, cph]

Documentation:   PDF Manual  

Apache License 2.0 | file LICENSE license

Imports readr, httr, dplyr, jsonlite, methods, RcppMsgPack, urltools, uuid, purrr

Suggests testthat, mockery, openssl, webmockr, devtools

System requirements: embulk, embulk-output-td

See at CRAN