Relational Query Generator for Data Manipulation at Scale
Overview
A piped query generator based on Edgar F. Codd's relational algebra, and on production experience using 'SQL' and 'dplyr' at big data scale. The design represents an attempt to make 'SQL' more teachable by denoting composition by a sequential pipeline notation instead of nested queries or functions. The implementation delivers reliable high performance data processing on large data systems such as 'Spark', databases, and 'data.table'. Package features include: data processing trees or pipelines as observable objects (able to report both columns produced and columns used), optimized 'SQL' generation as an explicit user visible table modeling step, plus explicit query reasoning and checking.
- Fix brace issue in docs.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-25
- NOTE14 NOTE2026-03-10
Documentation
- Help pages
- 109 (13 internal)includes a package overview page
- Examples that run
- 100%70 run in a plain check (62 of them under a condition)
- Exported functions with examples
- 68%
- Documented parameters
- 100%
- Return-value docs
- 95%
- Help pages citing references
- 0%
- Assignment Partitioner HTML
- Parameterized rquery HTML
- Pipeable SQL HTML
- Query Generation HTML
- R mapping HTML
- rquery Introduction HTML
- rquery Many Columns HTML
- SQL quoting HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
Commits over time
Commit identities over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/winvector/rquery on 2026-10-22.
Dependencies
Installing rquery adds 1 package (0 with compiled code, 552 KB of source tarballs). Heaviest: wrapr 552 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.5.1Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.4.992023-08-20 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.4.92022-02-28 · diff ↗
- 1.4.82022-01-22 · diff ↗
- 1.4.72021-06-10 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.4.6
- 1.4.5
- RR 4.0.0 released · 2020-04-24
- 1.4.42020-02-18 · diff ↗
- 1.4.32020-02-01 · diff ↗ ·
removed 13 exports
%.>%, %:=%, apply_left, apply_right, build_frame, draw_frame, let, map_to_char, mk_tmp_name_source, qae, qc, qchar_frame, qeadded 1 export
make_assignments
Show 31 earlier eventsHide 31 earlier events
- 1.4.22020-01-19 · diff ↗
- 1.4.12020-01-09 · diff ↗
- 1.4.02019-12-01 · diff ↗
- 1.3.92019-10-27 · diff ↗ ·
removed 4 exports
add_relop, get_relop_list_stages, make_relop_list, materialize_relop_list_stagesadded 3 exports
arrow, ex, wrap - 1.3.82019-09-15 · diff ↗ ·
added 3 exports
convert_yaml_to_pipeline, order_rows, to_transport_representation - 1.3.72019-07-29 · diff ↗
- 1.3.62019-07-04 · diff ↗
- 1.3.52019-06-26 · diff ↗
- 1.3.4
- 1.3.32019-06-02 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.3.22019-03-10 · diff ↗
- 1.3.1
- 1.3.02019-01-29 · diff ↗ ·
added 14 exports
add_relop, get_relop_list_stages, make_relop_list, materialize_relop_list_stages, pre_sql_fn, pre_sql_identifier, pre_sql_string, pre_sql_sub_expr, pre_sql_to_query, pre_sql_token, row_counts, rquery_default_methods, setDBOpt, str_pre_sql_sub_expr - 1.2.12018-12-16 · diff ↗ ·
added 7 exports
extend, order_expr, order_expr_nse, order_expr_se, project, select_rows, theta_join - 1.2.02018-11-07 · diff ↗
- 1.1.12018-10-26 · diff ↗
- 1.1.0
- 1.0.0
- 0.6.2
- 0.6.12018-08-01 · diff ↗ ·
removed 9 exports
%>>%, dbi_colnames, dbi_coltypes, dbi_connection_advice, dbi_connection_tests, dbi_copy_to, dbi_nrow, dbi_remove_table, dbi_table_existsadded 4 exports
affine_transform, quote_table_name, rlook, rstr - 0.5.02018-06-18 · diff ↗ ·
removed 4 exports
dbi_connection_name, dbi_connection_preferences, dbi_execute, materialize_sql_statementadded 38 exports
%.>%, %:=%, %>>%, apply_left, apply_right, build_frame, complete_design, db_td, dbi_coltypes, dbi_connection_advice, draw_frame, example_employee_date, expand_grid, let, local_td, map_to_char, materialize_node, materialize_sql, mk_td, mk_tmp_name_source, qae, qc, qchar_frame, qe, quote_identifier, quote_literal, quote_string, rq_colnames, rq_coltypes, rq_connection_advice and 8 more - 0.4.32018-05-08 · diff ↗ ·
removed 1 export
replace_null_colsadded 21 exports
actualize_join_plan, assign_slice, build_join_plan, dbi_execute, describe_tables, drop_columns, format_node, graph_join_plan, if_else_op, inspect_join_plan, key_inspector_all_cols, key_inspector_postgresql, key_inspector_sqlite, map_column_values, normalize_cols, null_replace, op_diagram, pick_top_k, set_indicator, topo_sort_tables, unionall - RR 3.5.0 released · 2018-04-23
- 0.4.22018-04-05 · diff ↗ ·
added 7 exports
dbi_connection_name, dbi_connection_preferences, dbi_connection_tests, dbi_table_exists, getDBOption, materialize_sql_statement, setDBOption - 0.4.12018-03-18 · diff ↗ ·
removed 1 export
materialize_nodeadded 6 exports
dbi_colnames, dbi_nrow, dbi_remove_table, quantile_cols, quantile_node, sql_expr_set - 0.4.02018-03-10 · diff ↗ ·
removed 2 exports
execute_data_frame, to_pre_sqladded 9 exports
commencify, count_null_cols, execute, mark_null_cols, materialize_node, non_sql_node, replace_null_cols, rsummary, rsummary_node - 0.3.1
- 0.3.02018-01-31 · diff ↗
- 0.2.02018-01-24
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2018-01-24
- Total releases
- 37 / 8 yrs
- License
- GPL-2 | GPL-3 OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 491 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rquery")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.