R (prqlr)

R bindings for prql-compiler.

prqlr also includes knitr (R Markdown and Quarto) integration, which allows us to easily create documents with the PRQL conversion results embedded in.

Check out https://eitsupi.github.io/prqlr/ for more context.

Note

prqlr is generously maintained by @eitsupi in the eitsupi/prqlr repo.

Installation

  1. install.packages("prqlr")

Usage

  1. library(prqlr)
  2. "
  3. from employees
  4. join salaries [emp_id]
  5. group [dept_id, gender] (
  6. aggregate [
  7. avg_salary = average salary
  8. ]
  9. )
  10. " |>
  11. prql_compile()