Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krlmlr/tidyduck
High-level R bindings for the DuckDB Database Management System
https://github.com/krlmlr/tidyduck
Last synced: 12 days ago
JSON representation
High-level R bindings for the DuckDB Database Management System
- Host: GitHub
- URL: https://github.com/krlmlr/tidyduck
- Owner: krlmlr
- License: other
- Created: 2022-08-03T03:59:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-03T03:59:14.000Z (over 2 years ago)
- Last Synced: 2024-11-01T10:42:29.259Z (19 days ago)
- Language: R
- Homepage:
- Size: 131 KB
- Stars: 19
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# duckdb R package
## Installation from CRAN
```r
install.packages("duckdb")
```## Building
The default build compiles a release version from an amalgamation.
```sh
cd tools/rpkg
R CMD INSTALL .
```Optional extensions can be enabled by passing them (comma-separated, if there is more than one) to the environment variable `DUCKDB_R_EXTENSIONS`:
```sh
DUCKDB_R_EXTENSIONS=tpch R CMD INSTALL .
```## Development
For development, setting the `DUCKDB_R_DEBUG` environment variable enables incremental debugging builds for the R package.
```sh
cd tools/rpkg
DUCKDB_R_DEBUG=1 R CMD INSTALL .
```This also works for devtools:
```r
Sys.setenv(DUCKDB_R_DEBUG = "1")
pkgload::load_all()
```Add the following to your `.Renviron` to make this the default:
```
DUCKDB_R_DEBUG=1
```If you do this, remember to use `--vanilla` for building release builds.