README.md

tdclientr package CRAN Version

Treasure Data API library for R

Under construction

Installation

tdclientr package isn't available from CRAN yet, but you can get it from github with:

install.packages("devtools")
devtools::install_github("teramonagi/tdclientr")

Example

Please see also the API manual at Treasure Data Documentation.

Generate td client

TreasureData API key will be read from environment or usual R variable TD_API_KEY, if api_key variable is NULL via arguments to td().

#Generate td client
client <- td(database="sample_datasets")

Listing jobs

#Show job list
list_job(client)

#Show table list
list_table(client)

#Issue job
job <- issue_job(client, "select * from nasdaq limit 10;")

#Show job content
show(job)

#Check the status of job you issued
status(job)

#Get the result
result(job)

Contributing



teramonagi/tdclientr documentation built on May 31, 2019, 8:38 a.m.