{"id":20856973,"url":"https://github.com/duckdb/duckdb-r","last_synced_at":"2026-01-30T03:52:51.288Z","repository":{"id":192578624,"uuid":"681989124","full_name":"duckdb/duckdb-r","owner":"duckdb","description":"The duckdb R package","archived":false,"fork":false,"pushed_at":"2025-03-20T00:53:15.000Z","size":44481,"stargazers_count":162,"open_issues_count":73,"forks_count":34,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-06T19:01:39.375Z","etag":null,"topics":["database","duckdb","olap","r"],"latest_commit_sha":null,"homepage":"https://r.duckdb.org/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duckdb.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2023-08-23T07:40:02.000Z","updated_at":"2025-03-31T14:14:31.000Z","dependencies_parsed_at":"2023-10-05T03:45:27.047Z","dependency_job_id":"6a7d1cd6-06a3-46ac-bab7-d9cf4023dad1","html_url":"https://github.com/duckdb/duckdb-r","commit_stats":{"total_commits":2205,"total_committers":21,"mean_commits":105.0,"dds":0.3564625850340136,"last_synced_commit":"eeb938d5ecdbbc38790488584ce25299c176a9bd"},"previous_names":["duckdb/duckdb-r"],"tags_count":123,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckdb%2Fduckdb-r","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckdb%2Fduckdb-r/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckdb%2Fduckdb-r/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckdb%2Fduckdb-r/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duckdb","download_url":"https://codeload.github.com/duckdb/duckdb-r/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248783436,"owners_count":21160921,"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":["database","duckdb","olap","r"],"created_at":"2024-11-18T04:35:31.056Z","updated_at":"2026-01-30T03:52:51.282Z","avatar_url":"https://github.com/duckdb.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://r.duckdb.org/\"\u003e\u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://duckdb.org/images/logo-dl/DuckDB_Logo-horizontal.svg\"\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://duckdb.org/images/logo-dl/DuckDB_Logo-horizontal-dark-mode.svg\"\u003e\n    \u003cimg alt=\"DuckDB logo\" src=\"https://duckdb.org/images/logo-dl/DuckDB_Logo-horizontal.svg\" height=\"100\"\u003e\n  \u003c/picture\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n# duckdb\n\n[DuckDB](https://duckdb.org/) is an in-process SQL OLAP database management system.\nIt is designed to support analytical query workloads and is optimized for fast query execution.\nThis repository contains the R bindings for DuckDB.\n\n## Installation from CRAN\nThis is the recommended method for recent R versions on Windows or macOS which have binaries available on CRAN.\n\n``` r\ninstall.packages(\"duckdb\")\n```\n\nFor Linux or older R versions, installing the package from source may take up to an hour.\nConsider the [Posit Public Package Manager](https://p3m.dev/) for binary installs (see the next section).\n\n## Installation from the Posit Public Package Manager\n\nThis repository serves binary builds of CRAN packages for a wide variety of platforms.\nFollow setup instructions from \u003chttps://p3m.dev/client/#/repos/cran/setup\u003e.\nFor example, to install the ManyLinux version of duckdb that is likely to work on your Linux, use:\n\n``` r\ninstall.packages(\"duckdb\", repos = sprintf(\n  \"https://p3m.dev/cran/latest/bin/linux/manylinux_2_28-%s/%s\", R.version[\"arch\"], substr(getRversion(), 1, 3)\n))\n```\n\nTo check the availability of binaries for your platform, navigate to the [duckdb search page](https://p3m.dev/client/#/repos/cran/packages/overview?search=duckdb).\n\n## Installation from r-universe\n\nThis repository serves development versions.\nBinaries are available for recent versions of R and for some platforms.\nReview \u003chttps://docs.r-universe.dev/install/binaries.html\u003e for configuring installation of binary packages on Linux.\n\n``` r\ninstall.packages(\"duckdb\", repos = c(\"https://duckdb.r-universe.dev\", \"https://cloud.r-project.org\"))\n```\n\nInstalling the package from source may take up to an hour.\n\n## Installation from GitHub\n\n``` r\n# install.packages(\"pak\", repos = sprintf(\"https://r-lib.github.io/p/pak/stable/%s/%s/%s\", .Platform$pkgType, R.Version()$os, R.Version()$arch))\npak::pak(\"duckdb/duckdb-r\")\n```\n\nInstalling the package from GitHub may take up to an hour.\n\n## User Guide\n\nSee the [R API in the DuckDB documentation](https://duckdb.org/docs/api/r).\n\n## Building\n\nTo build the R package, you first need to clone this repository and install the dependencies:\n\n``` r\n# install.packages(\"pak\", repos = sprintf(\"https://r-lib.github.io/p/pak/stable/%s/%s/%s\", .Platform$pkgType, R.Version()$os, R.Version()$arch))\npak::pak()\n```\n\nThen, install:\n\n``` sh\n~duckdb-r: R CMD INSTALL .\n```\n\nSet the `MAKEFLAGS` environment variable to `-j8` or similar for parallel builds.\nConfigure `ccache` for faster repeated builds.\n\nIf you wish to test new DuckDB functionality with duckdb-r, make sure your clone of `duckdb-r` is one level deeper than your clone of `duckdb` (e.g. `R/duckdb-r` and `duckdb`).\nThen run the following commands:\n\n``` sh\n~ (cd duckdb \u0026\u0026 git checkout {{desired_branch}})\n~ (cd R/duckdb-r \u0026\u0026 scripts/vendor.sh)\n~ (cd R/duckdb-r \u0026\u0026 R CMD INSTALL .)\n```\n\nIt helps if both the duckdb directory and duckdb-r directory are clean.\n\n## Vendoring\n\nThis package includes a vendored copy of the DuckDB C++ library. The vendoring process is automated and runs hourly to synchronize with the upstream DuckDB repository. For detailed information about how vendoring works, the relationship between `main` and `next` branches, and manual vendoring procedures, see `scripts/VENDORING.md`.\n\n## Contributors\n\nThanks to all [contributors](https://github.com/duckdb/duckdb-r/graphs/contributors) to this repository, and to those who contributed when the code was still hosted in the main [duckdb/duckdb](https://github.com/duckdb/duckdb) repository:\n\nMark Raasveldt, Pedro Holanda, Tom Ebergen, Reijo Sund, Nicolas Bennett, Patrik Schratz, Tishj, Laurens Kuiper, Sam Ansmink, Andy Teucher, Hadley Wickham, Jonathan Keane, Lindsay Wray, Richard Wesley, Elliana May, Edwin de Jonge, Dewey Dunnington, Carlo Piovesan, Andre Beckedorf, Tania Bogatsch, Pedro Ferreira, Maximilian Girlich, James Lamb, James Atkins, usurai, Ubuntu, Noam Ross, Michael Antonov, Jeroen Ooms, Jamie Lentin, Jacob, and Chilarai.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckdb%2Fduckdb-r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduckdb%2Fduckdb-r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckdb%2Fduckdb-r/lists"}