Skip to content

Instantly share code, notes, and snippets.

@virtualstaticvoid
Last active February 1, 2022 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virtualstaticvoid/33cd2ba01757088acb834df76e13c99f to your computer and use it in GitHub Desktop.
Save virtualstaticvoid/33cd2ba01757088acb834df76e13c99f to your computer and use it in GitHub Desktop.
Heroku Buildpack R Issue #156
helpers.installPackages("duckdb")
# from https://www.rdocumentation.org/packages/duckdb/versions/0.3.1-1/topics/duckdb_register
library(duckdb)
con <- dbConnect(duckdb())
data <- data.frame(a = 1:3, b = letters[1:3])
duckdb_register(con, "data", data)
dbReadTable(con, "data")
duckdb_unregister(con, "data")
dbDisconnect(con)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment