{"id":23209043,"url":"https://github.com/treasure-data/rtd","last_synced_at":"2025-06-11T20:32:42.028Z","repository":{"id":56936150,"uuid":"160809171","full_name":"treasure-data/RTD","owner":"treasure-data","description":"Simple R client for Treasure Data","archived":false,"fork":false,"pushed_at":"2023-07-12T00:52:38.000Z","size":2591,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":68,"default_branch":"master","last_synced_at":"2024-12-17T19:50:11.843Z","etag":null,"topics":["r","treasuredata"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/treasure-data.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-07T10:28:48.000Z","updated_at":"2023-07-11T22:48:53.000Z","dependencies_parsed_at":"2022-08-21T06:20:45.106Z","dependency_job_id":null,"html_url":"https://github.com/treasure-data/RTD","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treasure-data%2FRTD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treasure-data%2FRTD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treasure-data%2FRTD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treasure-data%2FRTD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/treasure-data","download_url":"https://codeload.github.com/treasure-data/RTD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230318623,"owners_count":18207812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["r","treasuredata"],"created_at":"2024-12-18T18:13:57.196Z","updated_at":"2024-12-18T18:13:58.908Z","avatar_url":"https://github.com/treasure-data.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RTD\n\n![R-CMD-check](https://github.com/treasure-data/RTD/workflows/R-CMD-check/badge.svg)\n\nRTD is an official R client for Arm Treasure Data. It aims to make it simple to handle or connect from R to TD.\n\nSince RTD covers only basic execution on TD, we recommend to use [RPresto](https://github.com/prestodb/RPresto) or RJDBC for querying.\n\n## Requirements\n\nTo upload data.frame from R, there are two options:\n\n1. embulk\n2. bulk-import\n\nIf you want to use embulk, ensure you've installed embulk and set PATH for it.\n\n- [embulk](https://www.embulk.org/)\n- [embulk-output-td](https://github.com/treasure-data/embulk-output-td)\n\n\n## Install\n\nAs of version 0.4.1, RTD has been back to CRAN. You can install RTD as:\n\n```R\ninstall.packages(\"RTD\")\n```\n\nYou can install via `devtools::install_github` for the latest development version.\n\n```R\ninstall.packages(\"devtools\") # Install devtools if needed\ndevtools::install_github(\"treasure-data/RTD@v0.4.1\")\n```\n\nOr, you can use install-github.me instead like:\n\n```R\nsource(\"https://install-github.me/treasure-data/RTD@v0.4.1\")\n```\n\n## Example\n\nSee also [RTD_example.Rmd](https://github.com/treasure-data/RTD/blob/master/RTD_example.Rmd) or [RPubs](https://rpubs.com/chezou/TD-from-RPresto-RTD).\n\n```R\nlibrary(RTD)\n\nclient \u003c- Td(apikey=Sys.getenv(\"TD_API_KEY\"), endpoint=Sys.getenv(\"TD_API_SERVER\"))\n\n# Show list of databases\nlist_databases(client)\n\n# Create database\ncreate_database(client, \"test\")\n\n# Craete table\ncreate_table(client, \"test\", \"example\")\n\n# Delete table\ndelete_table(client, \"test\", \"example\")\n\n# Upload data.frame. Target database and table will be created automatically.\ntd_upload(client, \"test\", \"mtcars\", mtcars)\n\n# Drop database\ndelete_database(client, \"test\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreasure-data%2Frtd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreasure-data%2Frtd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreasure-data%2Frtd/lists"}