{"id":28532135,"url":"https://github.com/databrickslabs/databricks-sdk-r","last_synced_at":"2025-10-27T11:16:11.227Z","repository":{"id":176662337,"uuid":"657085994","full_name":"databrickslabs/databricks-sdk-r","owner":"databrickslabs","description":"Databricks SDK for R (Experimental)","archived":false,"fork":false,"pushed_at":"2024-04-08T10:28:16.000Z","size":9303,"stargazers_count":21,"open_issues_count":7,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-09T15:43:54.858Z","etag":null,"topics":["data-science","databricks","r","sdk"],"latest_commit_sha":null,"homepage":"https://databrickslabs.github.io/databricks-sdk-r/","language":"R","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/databrickslabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-06-22T09:35:24.000Z","updated_at":"2025-04-27T17:19:56.000Z","dependencies_parsed_at":"2024-04-08T11:36:05.864Z","dependency_job_id":null,"html_url":"https://github.com/databrickslabs/databricks-sdk-r","commit_stats":null,"previous_names":["databrickslabs/databricks-sdk-r"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/databrickslabs/databricks-sdk-r","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databrickslabs%2Fdatabricks-sdk-r","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databrickslabs%2Fdatabricks-sdk-r/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databrickslabs%2Fdatabricks-sdk-r/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databrickslabs%2Fdatabricks-sdk-r/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/databrickslabs","download_url":"https://codeload.github.com/databrickslabs/databricks-sdk-r/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databrickslabs%2Fdatabricks-sdk-r/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264092040,"owners_count":23556223,"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":["data-science","databricks","r","sdk"],"created_at":"2025-06-09T15:31:06.085Z","updated_at":"2025-10-27T11:16:11.222Z","avatar_url":"https://github.com/databrickslabs.png","language":"R","readme":"# Databricks SDK for R (Experimental)\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/databrickslabs/databricks-sdk-r/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/databrickslabs/databricks-sdk-r/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n## Authentication\n\nIt's recommended that you authenticate via the `.Renviron` file using `DATABRICKS_HOST` and `DATABRICKS_TOKEN` environment variables. You can also use [Databricks CLI Configuration Profiles](https://docs.databricks.com/dev-tools/auth.html#databricks-configuration-profiles) and `DATABRICKS_CONFIG_FILE` or `DATABRICKS_CONFIG_PROFILE` environment variables, but only the [PAT Authentication](https://docs.databricks.com/dev-tools/auth.html#databricks-personal-access-token-authentication) works at the moment. If you need more authentication methods, please fork this GitHub repository and send pull request with the feature suggestion.\n\nExample of overriding authentication profile. Look at `databricks auth profiles` to know which ones are working.\n```r\nclient \u003c- DatabricksClient(profile=\"your-cli-profile\")\n```\n\n## Complete with Databricks workspace-level APIs\n\nDatabricks SDK for R comes with all public workspace-level API and is consistent with [Databricks SDK for Python](https://github.com/databricks/databricks-sdk-py), [Databricks SDK for Go](https://github.com/databricks/databricks-sdk-go), and [Databricks SDK for Java](https://github.com/databricks/databricks-sdk-java). Databricks SDK for R does not expose account-level API and you're recommended to use Go, Python, or Java SDK to build an account-level automation.\n\n```r\nlibrary(dplyr)\nlibrary(databricks)\nclient \u003c- DatabricksClient()\nrunning \u003c- list_clusters(client) %\u003e% filter(state == 'RUNNING')\ncontext \u003c- create_command_execution_and_wait(client, cluster_id=running$cluster_id, language='python')\nres \u003c- execute_command_and_wait(client, cluster_id=running$cluster_id, context_id=context$id, language='sql', command='show tables')\nres\n```\n\n## Pagination\n\nAll `list` methods (and those, which return any list of results), do consistently return a `data.frame` of all entries from all pages, regardless of the underlying implementation.\n\n```r\nlist_clusters(client)[1:10,c(\"cluster_id\", \"cluster_name\", \"state\")]\n#              cluster_id                                      cluster_name      state\n# 1  1109-110110-kjfoeopq                              DEFAULT Test Cluster TERMINATED\n# 2  0110-221212-oqqpodoa                               GO_SDK Test Cluster TERMINATED\n# 3  1109-012301-qlwlwqpq                               BRICKS Test Cluster TERMINATED\n# 4  1109-110012-qpwoepqq                               VSCODE Test Cluster TERMINATED\n# 5  0110-201022-oqooqpqp                               JS_SDK Test Cluster TERMINATED\n```\n\n## Long-running operations\n\nAll long-running operations do poll Databricks backend until the entity reaches desired state:\n\n```r\ncreate_cluster_and_wait(client, spark_version = \"12.x-snapshot-scala2.12\", cluster_name = \"r-sdk-cluster\", num_workers = 1, autotermination_minutes=20, node_type_id=\"i3.xlarge\")\n# PENDING: Finding instances for new nodes, acquiring more instances if necessary\n```\n\n## Interface stability\n\nAPI clients for all services are generated from specification files that are synchronized from the main platform. Databricks may have minor [documented](https://github.com/databrickslabs/databricks-sdk-r/blob/main/CHANGELOG.md) backward-incompatible changes, such as renaming the methods or some type names to bring more consistency. \n\n## Project Support\n\nPlease note that all projects in the `databrickslabs` github space are provided for your exploration only, and are not formally supported by Databricks with Service Level Agreements (SLAs). They are provided AS-IS and we do not make any guarantees of any kind. Please do not submit a support ticket relating to any issues arising from the use of these projects.\n\nAny issues discovered through the use of this project should be [filed as GitHub Issues on the Repo](https://github.com/databrickslabs/databricks-sdk-r/issues). They will be reviewed as time permits, but there are no formal SLAs for support.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabrickslabs%2Fdatabricks-sdk-r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatabrickslabs%2Fdatabricks-sdk-r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabrickslabs%2Fdatabricks-sdk-r/lists"}