cran / duckdb

:exclamation: This is a read-only mirror of the CRAN R package repository. duckdb — DBI Package for the DuckDB Database Management System. Homepage: https://r.duckdb.org/, https://github.com/duckdb/duckdb-r Report bugs for this package: https://github.com/duckdb/duckdb-r/issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

duckdb R package

Installation from CRAN

install.packages("duckdb")

Building

The default build compiles a release version from an amalgamation.

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:

DUCKDB_R_EXTENSIONS=tpch R CMD INSTALL .

Development

To build the R package, you first need to install the dependencies, these are located in tools/rpkg/dependencies.R Navigate over to the tools/rpkg folder and run Rscript dependencies.R

For development, setting the DUCKDB_R_DEBUG environment variable enables incremental debugging builds for the R package.

cd tools/rpkg
DUCKDB_R_DEBUG=1 R CMD INSTALL .

This also works for devtools:

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.

About

:exclamation: This is a read-only mirror of the CRAN R package repository. duckdb — DBI Package for the DuckDB Database Management System. Homepage: https://r.duckdb.org/, https://github.com/duckdb/duckdb-r Report bugs for this package: https://github.com/duckdb/duckdb-r/issues

License:Other


Languages

Language:C++ 93.8%Language:R 4.5%Language:C 1.6%Language:Makefile 0.1%Language:Shell 0.0%