This R package is a DBI interface for the Yandex Clickhouse database. It provides basic dplyr support by auto-generating SQL-commands using dbplyr and is based on the official C++ Clickhouse Client.
A C++ compiler and for Windows Rtools are required. The latest version can be installed directly from github using devtools like this:
devtools::install_github("IMSMWU/RClickhouse")
# create a DBI Connection
con <- DBI::dbConnect(RClickhouse::clickhouse(), host="example-db.com")
# now you can write data to the db
DBI::dbWriteTable(con, "mtcars", mtcars)
# ... and query it using dpylr
library(dplyr)
tbl(con, "mtcars") %>% group_by(cyl) %>% summarise(smpg=sum(mpg))
Big thanks to Kirill Müller, Maxwell Peterson, Artemkin Pavel and Hannes Mühleisen.