Treasure Data API library for R
Under construction
tdclientr package isn't available from CRAN yet, but you can get it from github with:
install.packages("devtools")
devtools::install_github("teramonagi/tdclientr")
Please see also the API manual at Treasure Data Documentation.
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")
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.