From 635b00b76dd67186f744d7a8a5f2ad35df38415b Mon Sep 17 00:00:00 2001
From: eitsupi <50911393+eitsupi@users.noreply.github.com>
Date: Tue, 28 Jan 2025 14:09:57 +0000
Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20PRQL/prq?=
=?UTF-8?q?lc-r@b0fba6cf0fe86aaf4ba897ed5666967f968bc5d7=20=F0=9F=9A=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
dev/articles/knitr.html | 8 ++--
dev/articles/prqlr.html | 2 +-
dev/authors.html | 82 +++++++++++++++++++++++++++++++--
dev/index.html | 10 ++--
dev/pkgdown.yml | 2 +-
dev/reference/prql_compile.html | 6 +--
dev/reference/prql_version.html | 2 +-
dev/search.json | 2 +-
8 files changed, 95 insertions(+), 19 deletions(-)
diff --git a/dev/articles/knitr.html b/dev/articles/knitr.html
index 8d00e7e..cd6e817 100644
--- a/dev/articles/knitr.html
+++ b/dev/articles/knitr.html
@@ -178,7 +178,7 @@
Without database connectionsLIMIT
3
--- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org)
+-- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org)
```
@@ -266,7 +266,7 @@ Parameterized PRQL code blocksLIMIT
3
--- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org)
+-- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org)
```
Use query strings in R code blocks
@@ -301,7 +301,7 @@ Use query strings in R code blocksFROM
mtcars
--- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org)
+-- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org)
```
@@ -342,7 +342,7 @@ Set special info stri
LIMIT
3
--- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org)
+-- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org)
```
diff --git a/dev/articles/prqlr.html b/dev/articles/prqlr.html
index aca59bd..9f97528 100644
--- a/dev/articles/prqlr.html
+++ b/dev/articles/prqlr.html
@@ -121,7 +121,7 @@
#> WHERE
#> cyl > 6
#>
-#> -- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org)
+#> -- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org)
This output SQL query string can be used with already existing great
packages that manipulate data with SQL.
diff --git a/dev/authors.html b/dev/authors.html
index 6bc425c..8808cce 100644
--- a/dev/authors.html
+++ b/dev/authors.html
@@ -111,6 +111,10 @@
Additional details
Additional details
- anstyle-wincon: Ed Page <https://github.com/epage>
+
+
Additional details
+
- anyhow: David Tolnay <https://github.com/dtolnay>
+
Additional details
- ariadne: Joshua Barretto <https://github.com/zesterer>
@@ -151,6 +155,34 @@
Additional details
Additional details
- csv-core: Andrew Gallant <https://github.com/BurntSushi>
+
+
Additional details
+
- darling: Ted Driggs <https://github.com/TedDriggs>
+
+
+
Additional details
+
- darling_core: Ted Driggs <https://github.com/TedDriggs>
+
+
+
Additional details
+
- darling_macro: Ted Driggs <https://github.com/TedDriggs>
+
+
+
Additional details
+
- deranged: Jacob Pratt <https://github.com/jhpratt>
+
+
+
Additional details
+
- derive_builder: Colin Kiegel <https://github.com/colin-kiegel>, Ted Driggs <https://github.com/TedDriggs>
+
+
+
Additional details
+
- derive_builder_core: Colin Kiegel <https://github.com/colin-kiegel>, Ted Driggs <https://github.com/TedDriggs>
+
+
+
Additional details
+
- derive_builder_macro: Ted Driggs <https://github.com/TedDriggs>
+
Additional details
- dyn-clone: David Tolnay <https://github.com/dtolnay>
@@ -163,6 +195,10 @@
Additional details
Additional details
- enum-as-inner: Benjamin Fry <https://github.com/bluejekyll>
+
+
Additional details
+
- fnv: Simon Sapin <https://github.com/SimonSapin>, Steven Fackler <https://github.com/sfackler>
+
Additional details
- hashbrown: Amanieu d'Antras <https://github.com/Amanieu>
@@ -183,6 +219,10 @@
Additional details
Additional details
- iana-time-zone-haiku: Andrew Straw <https://github.com/astraw>, René Kijewski <https://github.com/Kijewski>
+
+
Additional details
+
- ident_case: Ted Driggs <https://github.com/TedDriggs>
+
Additional details
- is-terminal: Dan Gohman <https://github.com/sunfishcode>
@@ -217,20 +257,24 @@
Additional details
Additional details
-
- minimal-lexical: Alexander Huszagh <https://github.com/Alexhuszagh>
+
- num-conv: Jacob Pratt <https://github.com/jhpratt>
Additional details
-
- nom: Geoffroy Couprie <https://github.com/Geal>
+
- num-traits: Josh Stone <https://github.com/cuviper>
Additional details
-
- num-traits: Josh Stone <https://github.com/cuviper>
+
- num_threads: Jacob Pratt <https://github.com/jhpratt>, Thomas Hurst <https://github.com/Freaky>
Additional details
- once_cell: Alex Kladov <https://github.com/matklad>, Michal 'vorner' Vaner <https://github.com/vorner>
+
+
Additional details
+
- powerfmt: Jacob Pratt <https://github.com/jhpratt>
+
Additional details
- proc-macro2: David Tolnay <https://github.com/dtolnay>
@@ -339,6 +383,10 @@
Additional details
Additional details
- stacker: Simonas Kazlauskas <https://github.com/nagisa>, Alex Crichton <https://github.com/alexcrichton>
+
+
Additional details
+
- strsim: Danny Guo <https://github.com/dguo>, Max Bachmann <https://github.com/maxbachmann>
+
Additional details
- strum: Peter Glotfelty <https://github.com/Peternator7>
@@ -351,6 +399,18 @@
Additional details
Additional details
- syn: David Tolnay <https://github.com/dtolnay>
+
+
Additional details
+
- time: Jacob Pratt <https://github.com/jhpratt>
+
+
+
Additional details
+
- time-core: Jacob Pratt <https://github.com/jhpratt>
+
+
+
Additional details
+
- time-macros: Jacob Pratt <https://github.com/jhpratt>
+
Additional details
- unicode-ident: David Tolnay <https://github.com/dtolnay>
@@ -367,6 +427,18 @@
Additional details
Additional details
- utf8parse: Joe Wilm <https://github.com/jwilm>, Christian Duerr <https://github.com/chrisduerr>, Tyler Berry <https://github.com/Tahler>
+
+
Additional details
+
- vergen: Jason Ozias <https://github.com/CraZySacX>
+
+
+
Additional details
+
- vergen-gitcl: Jason Ozias <https://github.com/CraZySacX>
+
+
+
Additional details
+
- vergen-lib: Jason Ozias <https://github.com/CraZySacX>
+
Additional details
- version_check: Sergio Benitez <https://github.com/SergioBenitez>
@@ -435,6 +507,10 @@
Additional details
Additional details
- windows_x86_64_msvc: Kenny Kerr <https://github.com/kennykerr>
+
+
Additional details
+
- winnow: Ed Page <https://github.com/epage>
+
Additional details
- yansi: Sergio Benitez <https://github.com/SergioBenitez>
diff --git a/dev/index.html b/dev/index.html
index c0be650..e59c671 100644
--- a/dev/index.html
+++ b/dev/index.html
@@ -77,7 +77,7 @@
R bindings for the prqlc
Rust library , powered by savvy
.
-
This version supports PRQL 0.13.0.
+
This version supports PRQL 0.13.3.
Installation
@@ -93,7 +93,7 @@
-
Or, the Rust toolchain (Rust 1.69 or later) must be configured to build the Rust library.
+
Or, the Rust toolchain (Rust 1.70.0 or later) must be configured to build the Rust library.
Please check the https://github.com/r-rust/hellorust repository for about Rust code in R packages.
+#> -- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org)
PRQL’s pipelines can be joined by the newline character (\n
), or actual newlines in addition to |
.
"from mtcars \n filter cyl > 6 \n select {cyl, mpg}" |>
@@ -127,7 +127,7 @@
+#> -- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org)
"from mtcars
filter cyl > 6
@@ -142,7 +142,7 @@
+#> -- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org)
Thanks to the tidyquery package, we can even convert a PRQL query to a SQL query and then to a dplyr query!
"from mtcars
diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml
index 578b52f..4e8fefb 100644
--- a/dev/pkgdown.yml
+++ b/dev/pkgdown.yml
@@ -4,7 +4,7 @@ pkgdown_sha: ~
articles:
knitr: knitr.html
prqlr: prqlr.html
-last_built: 2025-01-28T13:38Z
+last_built: 2025-01-28T14:09Z
urls:
reference: https://prql.github.io/prqlc-r/reference
article: https://prql.github.io/prqlc-r/articles
diff --git a/dev/reference/prql_compile.html b/dev/reference/prql_compile.html
index ce991d5..0f7afcc 100644
--- a/dev/reference/prql_compile.html
+++ b/dev/reference/prql_compile.html
@@ -100,7 +100,7 @@ Value Examples
"from mtcars | filter cyl > 6 | select {cyl, mpg}" |>
prql_compile ( )
-#> [1] "SELECT\n cyl,\n mpg\nFROM\n mtcars\nWHERE\n cyl > 6\n\n-- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org)\n"
+#> [1] "SELECT\n cyl,\n mpg\nFROM\n mtcars\nWHERE\n cyl > 6\n\n-- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org)\n"
"from mtcars | filter cyl > 6 | select {cyl, mpg}" |>
prql_compile ( format = FALSE , signature_comment = FALSE )
@@ -120,7 +120,7 @@
On this page
diff --git a/dev/reference/prql_version.html b/dev/reference/prql_version.html
index 9c7c3a9..327c904 100644
--- a/dev/reference/prql_version.html
+++ b/dev/reference/prql_version.html
@@ -60,7 +60,7 @@ Value
Examples
prql_version ( )
-#> [1] ‘0.13.0’
+#> [1] ‘0.13.3’
On this page
diff --git a/dev/search.json b/dev/search.json
index 8424dba..3181fb1 100644
--- a/dev/search.json
+++ b/dev/search.json
@@ -1 +1 @@
-[{"path":"https://prql.github.io/prqlc-r/dev/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 prqlr authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"output-formats","dir":"Articles","previous_headings":"","what":"Output formats","title":"Use PRQL with knitr","text":"can either output results actual query execution display SQL query compiled PRQL query.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"use-with-dbi-connections","dir":"Articles","previous_headings":"Output formats","what":"Use with {DBI} connections","title":"Use PRQL with knitr","text":"using database connections (set name DBI connection connection chunk option), PRQL code chunks pass output SQL knitr’s SQL engine behaves like SQL code chunks. , usage SQL code chunks. example, let’s render R Markdown file named test.Rmd following contents knitr::knit() function. rendering, Markdown file named test.md generated following contents. Note syntax highlighting Elm best PRQL, output code blocks marked elm. can changed setting lang chunk option.","code":"```{r} #| echo: false library(DBI) library(prqlr) con <- dbConnect(RSQLite::SQLite(), \":memory:\") dbWriteTable(con, \"mtcars\", mtcars) ``` ```{prql} #| connection: con from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 ``` ``` elm from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 ``` | cyl| mpg| mpg_int| |---:|----:|-------:| | 8| 18.7| 19| | 8| 14.3| 14| | 8| 16.4| 16|"},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"without-database-connections","dir":"Articles","previous_headings":"Output formats","what":"Without database connections","title":"Use PRQL with knitr","text":"PRQL code chunks without connection option generate SQL code blocks. R Markdown file converted Markdown file .","code":"```{r} #| echo: false library(prqlr) ``` ```{prql} from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 ``` ``` elm from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 ``` ```sql SELECT cyl, mpg, ROUND(mpg, 0) AS mpg_int FROM mtcars WHERE cyl > 6 LIMIT 3 -- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org) ```"},{"path":[]},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"compiler-options","dir":"Articles","previous_headings":"Engine options","what":"Compiler options","title":"Use PRQL with knitr","text":"can pass options prql_compile() via chunk option engine-opts (engine.opts). Note format option always TRUE PRQL code chunks.","code":"```{r} #| echo: false library(prqlr) ``` ## YAML-style ```{prql} #| engine-opts: #| target: sql.mssql #| signature_comment: false from mtcars take 3 ``` ## R-style ```{prql engine.opts=list(target=\"sql.mssql\", signature_comment=FALSE)} from mtcars take 3 ```"},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"parameterized-prql-code-blocks","dir":"Articles","previous_headings":"Engine options","what":"Parameterized PRQL code blocks","title":"Use PRQL with knitr","text":"experimental engine option use_glue can used insert R variables PRQL queries. Characters enclosed {{ }} replaced glue::glue() function passed prql_compile() function. R Markdown file converted Markdown file .","code":"```{r} #| echo: false library(prqlr) cyl_min <- 6 derive_or_select <- \"derive\" ``` ```{prql} #| engine-opts: #| use_glue: true from mtcars filter cyl > {{cyl_min}} select {cyl, mpg} {{derive_or_select}} {mpg_int = math.round 0 mpg} take 3 ``` ``` elm from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 ``` ```sql SELECT cyl, mpg, ROUND(mpg, 0) AS mpg_int FROM mtcars WHERE cyl > 6 LIMIT 3 -- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org) ```"},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"use-query-strings-in-r-code-blocks","dir":"Articles","previous_headings":"Engine options > Parameterized PRQL code blocks","what":"Use query strings in R code blocks","title":"Use PRQL with knitr","text":"experimental use_glue option, query string can even defined completely R side. example outputs following.","code":"```{r} #| echo: false library(prqlr) prql_query <- \"from mtcars select cyl\" ``` ```{prql} #| engine-opts: #| use_glue: true {{prql_query}} ``` ``` elm from mtcars select cyl ``` ```sql SELECT cyl FROM mtcars -- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org) ```"},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"set-special-info-string-to-output-sql-code-blocks","dir":"Articles","previous_headings":"Engine options","what":"Set special info string to output SQL code blocks","title":"Use PRQL with knitr","text":"making SQL code blocks output without DB connection, info_string option can used control info string output code block. convenient want add special attributes used Quarto Markdown files. default value \"sql\". example, following R Markdown file includes PRQL code block info_string option converted … Markdown file.","code":"```{r} #| echo: false library(prqlr) ``` ```{prql} #| engine-opts: #| info_string: '{.sql filename=\"SQL\"}' from mtcars take 3 ``` ``` elm from mtcars take 3 ``` ```{.sql filename=\"SQL\"} SELECT * FROM mtcars LIMIT 3 -- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org) ```"},{"path":"https://prql.github.io/prqlc-r/dev/articles/prqlr.html","id":"work-with-db","dir":"Articles","previous_headings":"","what":"Work with DB","title":"Use PRQL on R","text":"Using DBI package, can execute PRQL queries database. can also use sqldf::sqldf() function automatically register Data Frames database. Since SQLite used via RSQLite, target option prql_compile() set \"sql.sqlite\". Available target names can found prql_get_targets() function.","code":"library(DBI) # Create an ephemeral in-memory SQLite database con <- dbConnect(RSQLite::SQLite(), \":memory:\") # Create a table inclueds `mtcars` data dbWriteTable(con, \"mtcars\", mtcars) # Execute a PRQL query \" from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 \" |> prql_compile(\"sql.sqlite\") |> dbGetQuery(con, statement = _) #> cyl mpg mpg_int #> 1 8 18.7 19 #> 2 8 14.3 14 #> 3 8 16.4 16 \" from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 \" |> prql_compile(\"sql.sqlite\") |> sqldf::sqldf() #> Warning: no DISPLAY variable so Tk is not available #> cyl mpg mpg_int #> 1 8 18.7 19 #> 2 8 14.3 14 #> 3 8 16.4 16"},{"path":"https://prql.github.io/prqlc-r/dev/articles/prqlr.html","id":"work-with-r-data-frames","dir":"Articles","previous_headings":"","what":"Work with R Data Frames","title":"Use PRQL on R","text":"Using prqlr tidyquery package, can execute PRQL queries R Data Frames via dplyr. dplyr popular R package manipulating Data Frames, PRQL syntax similar dplyr syntax. Let’s run query aggregates Data Frame flights, contained nycflights13 package. query can written dplyr’s functions follows. Note dplyr queries can generated tidyquery::show_dplyr() function!","code":"library(tidyquery) library(nycflights13) \" from flights filter (distance | in 200..300) filter air_time != null group {origin, dest} ( aggregate { num_flts = count this, avg_delay = (average arr_delay | math.round 0) } ) sort {-origin, avg_delay} take 2 \" |> prql_compile() |> query() #> # A tibble: 2 × 4 #> origin dest num_flts avg_delay #> #> 1 LGA BUF 122 -2 #> 2 LGA PWM 273 2 library(dplyr, warn.conflicts = FALSE) library(nycflights13) flights |> filter( distance |> between(200, 300), !is.na(air_time) ) |> group_by(origin, dest) |> summarise( num_flts = n(), avg_delay = mean(arr_delay, na.rm = TRUE) |> round(0), .groups = \"drop\" ) |> arrange(desc(origin), avg_delay) |> head(2) #> # A tibble: 2 × 4 #> origin dest num_flts avg_delay #> #> 1 LGA BUF 122 -2 #> 2 LGA PWM 273 2"},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Tatsuya Shima. Author, maintainer. Authors dependency Rust crates. Author. see inst/AUTHORS file details","code":""},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Shima T, Authors dependency Rust crates (2025). prqlr: R Bindings 'prqlc' Rust Library. R package version 0.9.0.9000, https://github.com/PRQL/prqlc-r, https://prql.github.io/prqlc-r/.","code":"@Manual{, title = {prqlr: R Bindings for the 'prqlc' Rust Library}, author = {Tatsuya Shima and {Authors of the dependency Rust crates}}, year = {2025}, note = {R package version 0.9.0.9000, https://github.com/PRQL/prqlc-r}, url = {https://prql.github.io/prqlc-r/}, }"},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Owners of dependent Rust crates. This list is generated from Crates.io Data :"},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ahash: Tom Kaitchuck "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- aho-corasick: Andrew Gallant "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- allocator-api2: Zakarum "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- android_system_properties: Nicolas Silva "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anstream: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anstyle: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anstyle-parse: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anstyle-query: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anstyle-wincon: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ariadne: Joshua Barretto "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- autocfg: Josh Stone , Alex Kladov "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- bumpalo: Nick Fitzgerald , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- cfg-if: Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- chrono: Kang Seonghoon , Keegan McAllister "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- chumsky: Joshua Barretto "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- colorchoice: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- core-foundation-sys: Lars Bergstrom , Steven Fackler "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- csv: Andrew Gallant "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- csv-core: Andrew Gallant "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- dyn-clone: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- either: bluss , Josh Stone , Jack Wrenn "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- enum-as-inner: Benjamin Fry "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- hashbrown: Amanieu d'Antras "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- heck: srrrse , Jonas Platte "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- hermit-abi: Stefan Lankes , Martin Kröning "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- iana-time-zone: Andrew Straw , René Kijewski "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- iana-time-zone-haiku: Andrew Straw , René Kijewski "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- is-terminal: Dan Gohman "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- is_terminal_polyfill: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- itertools: bluss , Jack Wrenn "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- itoa: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- js-sys: Nick Fitzgerald , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- libc: Huon Wilson , gnzlbg , Yuki Okushi , Josh Triplett , Sebastian Dröge "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- log: Huon Wilson , Steven Fackler , Ashley Mannix "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- memchr: Andrew Gallant "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- minimal-lexical: Alexander Huszagh "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- nom: Geoffroy Couprie "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- num-traits: Josh Stone "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- once_cell: Alex Kladov , Michal 'vorner' Vaner "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- proc-macro2: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- prqlc: Maximilian Roos , Aljaž Mur Eržen "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- prqlc-parser: Maximilian Roos "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- psm: Simonas Kazlauskas "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- quote: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ref-cast: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ref-cast-impl: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- regex: Andrew Gallant , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- regex-automata: Andrew Gallant "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- regex-syntax: Andrew Gallant , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- rustversion: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ryu: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- savvy: Hiroaki Yutani "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- savvy-bindgen: Hiroaki Yutani "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- savvy-ffi: Hiroaki Yutani "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- savvy-macro: Hiroaki Yutani "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- schemars: Graham Esau "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- schemars_derive: Graham Esau "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- semver: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- serde: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- serde_derive: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- serde_derive_internals: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- serde_json: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- shlex: Fenhl "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- sqlformat: Josh Holmer "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- sqlparser: Andy Grove , Daniël Heres , Max Countryman , Nickolay Ponomarev , Andrew Lamb "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- stacker: Simonas Kazlauskas , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- strum: Peter Glotfelty "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- strum_macros: Peter Glotfelty "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- syn: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- unicode-ident: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- unicode-width: Riad S. Wahby , Huon Wilson , Simon Sapin , Manish Goregaokar , Sujay Jayakar , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- unicode_categories: Sean Gillespie "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- utf8parse: Joe Wilm , Christian Duerr , Tyler Berry "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- version_check: Sergio Benitez "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- wasm-bindgen: Nick Fitzgerald , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- wasm-bindgen-backend: Nick Fitzgerald , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- wasm-bindgen-macro: Nick Fitzgerald , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- wasm-bindgen-macro-support: Nick Fitzgerald , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- wasm-bindgen-shared: Nick Fitzgerald , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows-core: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows-sys: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows-targets: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows_aarch64_gnullvm: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows_aarch64_msvc: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows_i686_gnu: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows_i686_gnullvm: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows_i686_msvc: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows_x86_64_gnu: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows_x86_64_gnullvm: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- windows_x86_64_msvc: Kenny Kerr "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- yansi: Sergio Benitez "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- zerocopy: Joshua Liebow-Feeser , Jack Wrenn "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- zerocopy-derive: Joshua Liebow-Feeser "},{"path":"https://prql.github.io/prqlc-r/dev/index.html","id":"prqlr-","dir":"","previous_headings":"","what":"R Bindings for the prqlc Rust Library","title":"R Bindings for the prqlc Rust Library","text":"R bindings prqlc Rust library, powered savvy. version supports PRQL 0.13.0.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"R Bindings for the prqlc Rust Library","text":"Requires R 4.2.0 later. package can installed CRAN R-universe. available, binary package installed. source installation, pre-built Rust libraries may available environment variable NOT_CRAN set \"true\". (, set LIBPRQLR_BUILD \"false\") , Rust toolchain (Rust 1.69 later) must configured build Rust library. Please check https://github.com/r-rust/hellorust repository Rust code R packages.","code":"# Install from CRAN install.packages(\"prqlr\") # Install from R-universe install.packages(\"prqlr\", repos = \"https://prql.r-universe.dev\") Sys.setenv(NOT_CRAN = \"true\") install.packages(\"prqlr\")"},{"path":"https://prql.github.io/prqlc-r/dev/index.html","id":"examples","dir":"","previous_headings":"","what":"Examples","title":"R Bindings for the prqlc Rust Library","text":"PRQL’s pipelines can joined newline character (\\n), actual newlines addition |. Thanks tidyquery package, can even convert PRQL query SQL query dplyr query!","code":"library(prqlr) \"from mtcars | filter cyl > 6 | select {cyl, mpg}\" |> prql_compile() |> cat() #> SELECT #> cyl, #> mpg #> FROM #> mtcars #> WHERE #> cyl > 6 #> #> -- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org) \"from mtcars \\n filter cyl > 6 \\n select {cyl, mpg}\" |> prql_compile() |> cat() #> SELECT #> cyl, #> mpg #> FROM #> mtcars #> WHERE #> cyl > 6 #> #> -- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org) \"from mtcars filter cyl > 6 select {cyl, mpg}\" |> prql_compile() |> cat() #> SELECT #> cyl, #> mpg #> FROM #> mtcars #> WHERE #> cyl > 6 #> #> -- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org) \"from mtcars filter cyl > 6 select {cyl, mpg}\" |> prql_compile() |> tidyquery::show_dplyr() #> mtcars %>% #> filter(cyl > 6) %>% #> select(cyl, mpg)"},{"path":"https://prql.github.io/prqlc-r/dev/index.html","id":"knitr-integration","dir":"","previous_headings":"","what":"{knitr} integration","title":"R Bindings for the prqlc Rust Library","text":"Using prqlr knitr makes easy create documents lists PRQL queries translated SQL queries, documents lists PRQL queries tables data retrieved PRQL queries. Please check vignette vignette(\"knitr\", \"prqlr\") details.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_compile.html","id":null,"dir":"Reference","previous_headings":"","what":"Compile a PRQL query into a SQL query — prql_compile","title":"Compile a PRQL query into a SQL query — prql_compile","text":"Compile PRQL query SQL query","code":""},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_compile.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Compile a PRQL query into a SQL query — prql_compile","text":"","code":"prql_compile( prql_query, target = getOption(\"prqlr.target\", default = NULL), ..., format = getOption(\"prqlr.format\", default = TRUE), signature_comment = getOption(\"prqlr.signature_comment\", default = TRUE), display = getOption(\"prqlr.display\", default = \"plain\") )"},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_compile.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Compile a PRQL query into a SQL query — prql_compile","text":"prql_query character PRQL query. target character target name use NULL. NULL, target contained query used. available target names can listed prql_get_targets() function. ... Ignored. format logical flag (default: TRUE). Whether format SQL query. signature_comment logical flag. (default: TRUE). Whether add signature comment output SQL query. display character, one \"plain\" (default) \"ansi_color\". \"ansi_color\", error displayed ANSI color.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_compile.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Compile a PRQL query into a SQL query — prql_compile","text":"character compiled SQL query.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_compile.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Compile a PRQL query into a SQL query — prql_compile","text":"","code":"\"from mtcars | filter cyl > 6 | select {cyl, mpg}\" |> prql_compile() #> [1] \"SELECT\\n cyl,\\n mpg\\nFROM\\n mtcars\\nWHERE\\n cyl > 6\\n\\n-- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org)\\n\" \"from mtcars | filter cyl > 6 | select {cyl, mpg}\" |> prql_compile(format = FALSE, signature_comment = FALSE) #> [1] \"SELECT cyl, mpg FROM mtcars WHERE cyl > 6\" \" from mtcars filter cyl > 6 select !{cyl} \" |> prql_compile(\"sql.duckdb\") |> cat() #> SELECT #> * EXCLUDE (cyl) #> FROM #> mtcars #> WHERE #> cyl > 6 #> #> -- Generated by PRQL compiler version:0.13.0 target:sql.duckdb (https://prql-lang.org) # If the `target` argument is `NULL` (default) or `\"sql.any\"`, # the target specified in the header of the query will be used. \" prql target:sql.duckdb from mtcars filter cyl > 6 select !{cyl} \" |> prql_compile() |> cat() #> SELECT #> * EXCLUDE (cyl) #> FROM #> mtcars #> WHERE #> cyl > 6 #> #> -- Generated by PRQL compiler version:0.13.0 (https://prql-lang.org)"},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_get_targets.html","id":null,"dir":"Reference","previous_headings":"","what":"Get available target names — prql_get_targets","title":"Get available target names — prql_get_targets","text":"Get available target names target option prql_compile() function.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_get_targets.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get available target names — prql_get_targets","text":"","code":"prql_get_targets()"},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_get_targets.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get available target names — prql_get_targets","text":"character vector target names.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_get_targets.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get available target names — prql_get_targets","text":"","code":"prql_get_targets() #> [1] \"sql.any\" \"sql.ansi\" \"sql.bigquery\" \"sql.clickhouse\" #> [5] \"sql.duckdb\" \"sql.generic\" \"sql.glaredb\" \"sql.mssql\" #> [9] \"sql.mysql\" \"sql.postgres\" \"sql.sqlite\" \"sql.snowflake\""},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_version.html","id":null,"dir":"Reference","previous_headings":"","what":"prqlc's version — prql_version","title":"prqlc's version — prql_version","text":"prqlc's version","code":""},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_version.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"prqlc's version — prql_version","text":"","code":"prql_version()"},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_version.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"prqlc's version — prql_version","text":"numeric_version version built-prqlc.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/reference/prql_version.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"prqlc's version — prql_version","text":"","code":"prql_version() #> [1] ‘0.13.0’"},{"path":"https://prql.github.io/prqlc-r/dev/reference/prqlr-package.html","id":null,"dir":"Reference","previous_headings":"","what":"prqlr: R Bindings for the 'prqlc' Rust Library — prqlr-package","title":"prqlr: R Bindings for the 'prqlc' Rust Library — prqlr-package","text":"Provides function convert 'PRQL' strings 'SQL' strings. Combined R functions take 'SQL' argument, 'PRQL' can used R.","code":""},{"path":[]},{"path":"https://prql.github.io/prqlc-r/dev/reference/prqlr-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"prqlr: R Bindings for the 'prqlc' Rust Library — prqlr-package","text":"Maintainer: Tatsuya Shima ts1s1andn@gmail.com Authors: Authors dependency Rust crates (see inst/AUTHORS file details)","code":""},{"path":[]},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-development-version","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr (development version)","text":"prql_compile() funtion, arguments format singnature_comment named arguments. (#317)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"new-features-development-version","dir":"Changelog","previous_headings":"","what":"New features","title":"prqlr (development version)","text":"New experimental argument display prql_compile() function colorize error message prqlc. (#317)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-090","dir":"Changelog","previous_headings":"","what":"prqlr 0.9.0","title":"prqlr 0.9.0","text":"CRAN release: 2024-09-20","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-0-9-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr 0.9.0","text":"Based prqlc 0.13.0 (#312)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"bug-fixes-0-9-0","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"prqlr 0.9.0","text":"Fix report rustc version even installing pre-built binaries. (#305)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"miscellaneous-0-9-0","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"prqlr 0.9.0","text":"R-universe, installing pre-built binaries now default. (#305) configure script now compares package’s MSRV rustc version, rustc version less MSRV, warning message displayed. (#311)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-081","dir":"Changelog","previous_headings":"","what":"prqlr 0.8.1","title":"prqlr 0.8.1","text":"CRAN release: 2024-05-19 Just dependency updates. user-facing changes.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-080","dir":"Changelog","previous_headings":"","what":"prqlr 0.8.0","title":"prqlr 0.8.0","text":"CRAN release: 2024-02-14","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-0-8-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr 0.8.0","text":"error message completely changed. prql_compile()’s target option accept NA \"sql.\" anymore.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"new-features-0-8-0","dir":"Changelog","previous_headings":"","what":"New features","title":"prqlr 0.8.0","text":"Based prqlc 0.11.2 (#257)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"miscellaneous-0-8-0","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"prqlr 0.8.0","text":"GitHub repository used develop package moved https://github.com/PRQL/prqlc-r. URLs also changed accordingly. (#262, #263)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-070","dir":"Changelog","previous_headings":"","what":"prqlr 0.7.0","title":"prqlr 0.7.0","text":"CRAN release: 2024-01-08","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-0-7-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr 0.7.0","text":"Based prql-compiler 0.11.1 (#239, #242)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-060","dir":"Changelog","previous_headings":"","what":"prqlr 0.6.0","title":"prqlr 0.6.0","text":"CRAN release: 2023-11-14","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-0-6-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr 0.6.0","text":"Based prql-compiler 0.10.1 (#221, #229)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-054","dir":"Changelog","previous_headings":"","what":"prqlr 0.5.4","title":"prqlr 0.5.4","text":"CRAN release: 2023-10-07","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"new-features-0-5-4","dir":"Changelog","previous_headings":"","what":"New features","title":"prqlr 0.5.4","text":"prqlr can now installed “R source package Rust library binary”, inspired arrow package, string2path package, polars package. Available currently supported platforms (amd64 arm64 Linux macOS, amd64 Windows). NOT_CRAN=ture LIBPRQLR_BUILD=false set, script tools/prep-lib.R search Internet available binary. URL SHA256 hash available binaries recorded tools/lib-sums.tsv. (#187, #189, #190, #191)","code":"Sys.setenv(NOT_CRAN = \"true\") install.packages(\"prqlr\")"},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-053","dir":"Changelog","previous_headings":"","what":"prqlr 0.5.3","title":"prqlr 0.5.3","text":"CRAN release: 2023-09-21","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"new-features-0-5-3","dir":"Changelog","previous_headings":"","what":"New features","title":"prqlr 0.5.3","text":"Based prql-compiler 0.9.5 (#179)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"miscellaneous-0-5-3","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"prqlr 0.5.3","text":"prql knitr engine requires knitr 1.44 later. (#175)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-052","dir":"Changelog","previous_headings":"","what":"prqlr 0.5.2","title":"prqlr 0.5.2","text":"CRAN release: 2023-09-11 version, CRAN releases include vendored dependent Rust crates source code.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"miscellaneous-0-5-2","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"prqlr 0.5.2","text":"Update Authors field DESCRIPTION file inst/AUTHORS file’s format. (#169, #172)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-051","dir":"Changelog","previous_headings":"","what":"prqlr 0.5.1","title":"prqlr 0.5.1","text":"CRAN release: 2023-08-30","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"bug-fixes-0-5-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"prqlr 0.5.1","text":"Based prql-compiler 0.9.4 (#164)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-050","dir":"Changelog","previous_headings":"","what":"prqlr 0.5.0","title":"prqlr 0.5.0","text":"CRAN release: 2023-08-13","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-0-5-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr 0.5.0","text":"Based prql-compiler 0.9.3 (#130, #137, #142, #145, #155)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"bug-fixes-0-5-0","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"prqlr 0.5.0","text":"Support Rust 1.70 Windows. (Thanks @yutannihilation, #138)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"miscellaneous-0-5-0","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"prqlr 0.5.0","text":"package now includes inst/AUTHORS file. (#150, #154, #160) Set SystemRequirements: Cargo (Rust's package manager), rustc DESCRIPTION file. (#153) package now includes configure configure.win scripts check cargo command. (#149) Set CARGO_BUILD_JOBS=2 NOT_CRAN=true installation. (#151) Supports dependent Rust crates vendoring. (#152, #159) Update LICENSE.note file Rust crates vendoring. (#156)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-040","dir":"Changelog","previous_headings":"","what":"prqlr 0.4.0","title":"prqlr 0.4.0","text":"CRAN release: 2023-04-30","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-0-4-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr 0.4.0","text":"Based prql-compiler 0.8.1 (#121, #125)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"new-features-0-4-0","dir":"Changelog","previous_headings":"","what":"New features","title":"prqlr 0.4.0","text":"new engine option info_string prql engine knitr documents. See vignette vignette(\"knitr\", \"prqlr\") details. (#120)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"bug-fixes-0-4-0","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"prqlr 0.4.0","text":"prql knitr engine respect eval chunk option. (#123)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"internal-changes-0-4-0","dir":"Changelog","previous_headings":"","what":"Internal changes","title":"prqlr 0.4.0","text":"knitr engine tests updated adapt new knitr version. (Thanks @yihui, #122)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-030","dir":"Changelog","previous_headings":"","what":"prqlr 0.3.0","title":"prqlr 0.3.0","text":"CRAN release: 2023-03-16","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-0-3-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr 0.3.0","text":"Based prql-compiler 0.6.1 (#97, #99, #101, #106, #113) prql_to_sql() function (deprecated favor prql_compile() prqlr 0.1.0) removed. (#105)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"new-features-0-3-0","dir":"Changelog","previous_headings":"","what":"New features","title":"prqlr 0.3.0","text":"new compile target \"sql.\" can specified prql_compile()’s target option. traditional unspecified (NULL) target respect using target specified header query target. (#97) experimental new engine option use_glue prql engine knitr documents powered glue package. See vignette vignette(\"knitr\", \"prqlr\") details. (#103)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"bug-fixes-0-3-0","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"prqlr 0.3.0","text":"prql knitr engine compatibility Quarto CLI 1.3 pre-release version. (Thanks @cderv, #110)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-021","dir":"Changelog","previous_headings":"","what":"prqlr 0.2.1","title":"prqlr 0.2.1","text":"CRAN release: 2023-02-28","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"bug-fixes-0-2-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"prqlr 0.2.1","text":"Thanks new version extendr libR-sys, prqlr can now installed arm64 Linux. (#90) Now buildable Rust version 1.60 (#94)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-020","dir":"Changelog","previous_headings":"","what":"prqlr 0.2.0","title":"prqlr 0.2.0","text":"CRAN release: 2023-02-18","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-0-2-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr 0.2.0","text":"Based prql-compiler 0.5.1 (#71, #77, #86) SQL dialects must specified sql. prefix targeted (e.g. \"duckdb\" -> \"sql.duckdb\"). (#71) prql_available_dialects() renamed prql_get_targets(). (#85)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"new-features-0-2-0","dir":"Changelog","previous_headings":"","what":"New features","title":"prqlr 0.2.0","text":"prqlr registers prql engine knitr loaded. See vignette vignette(\"knitr\", \"prqlr\") details. (#53, #57, #62) New function prql_version() returns built-prql-compiler version. (#51) prql_compile()’s options can set options(). (#70)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"other-improvements-0-2-0","dir":"Changelog","previous_headings":"","what":"Other improvements","title":"prqlr 0.2.0","text":"prql_compile() longer leaks memory error occurs. (Thanks @sorhawell, #46, #52)","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-010","dir":"Changelog","previous_headings":"","what":"prqlr 0.1.0","title":"prqlr 0.1.0","text":"CRAN release: 2023-01-20","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-0-1-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr 0.1.0","text":"Based prql-compiler 0.4.1 prql_compile() implemented prql_to_sql() deprecated. json_to_prql() prql_to_json() removed.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"other-improvements-0-1-0","dir":"Changelog","previous_headings":"","what":"Other improvements","title":"prqlr 0.1.0","text":"CARGO_HOME now set temporary directory installation environment variable NOT_CRAN set true avoid writing HOME. (#25, #27, #29)","code":""},{"path":[]},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"enhancements-0-0-4","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"prqlr 0.0.4","text":"Change Rust toolchain Windows GNU MSVC. (#22)","code":""},{"path":[]},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"breaking-changes-0-0-3","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"prqlr 0.0.3","text":"Based prql-compiler 0.3.1 format_prql() function removed.","code":""},{"path":[]},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"enhancements-0-0-2","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"prqlr 0.0.2","text":"Based prql-compiler 0.2.11","code":""},{"path":"https://prql.github.io/prqlc-r/dev/news/index.html","id":"prqlr-001","dir":"Changelog","previous_headings":"","what":"prqlr 0.0.1","title":"prqlr 0.0.1","text":"Based prql-compiler 0.2.9","code":""}]
+[{"path":"https://prql.github.io/prqlc-r/dev/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 prqlr authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"output-formats","dir":"Articles","previous_headings":"","what":"Output formats","title":"Use PRQL with knitr","text":"can either output results actual query execution display SQL query compiled PRQL query.","code":""},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"use-with-dbi-connections","dir":"Articles","previous_headings":"Output formats","what":"Use with {DBI} connections","title":"Use PRQL with knitr","text":"using database connections (set name DBI connection connection chunk option), PRQL code chunks pass output SQL knitr’s SQL engine behaves like SQL code chunks. , usage SQL code chunks. example, let’s render R Markdown file named test.Rmd following contents knitr::knit() function. rendering, Markdown file named test.md generated following contents. Note syntax highlighting Elm best PRQL, output code blocks marked elm. can changed setting lang chunk option.","code":"```{r} #| echo: false library(DBI) library(prqlr) con <- dbConnect(RSQLite::SQLite(), \":memory:\") dbWriteTable(con, \"mtcars\", mtcars) ``` ```{prql} #| connection: con from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 ``` ``` elm from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 ``` | cyl| mpg| mpg_int| |---:|----:|-------:| | 8| 18.7| 19| | 8| 14.3| 14| | 8| 16.4| 16|"},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"without-database-connections","dir":"Articles","previous_headings":"Output formats","what":"Without database connections","title":"Use PRQL with knitr","text":"PRQL code chunks without connection option generate SQL code blocks. R Markdown file converted Markdown file .","code":"```{r} #| echo: false library(prqlr) ``` ```{prql} from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 ``` ``` elm from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 ``` ```sql SELECT cyl, mpg, ROUND(mpg, 0) AS mpg_int FROM mtcars WHERE cyl > 6 LIMIT 3 -- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org) ```"},{"path":[]},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"compiler-options","dir":"Articles","previous_headings":"Engine options","what":"Compiler options","title":"Use PRQL with knitr","text":"can pass options prql_compile() via chunk option engine-opts (engine.opts). Note format option always TRUE PRQL code chunks.","code":"```{r} #| echo: false library(prqlr) ``` ## YAML-style ```{prql} #| engine-opts: #| target: sql.mssql #| signature_comment: false from mtcars take 3 ``` ## R-style ```{prql engine.opts=list(target=\"sql.mssql\", signature_comment=FALSE)} from mtcars take 3 ```"},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"parameterized-prql-code-blocks","dir":"Articles","previous_headings":"Engine options","what":"Parameterized PRQL code blocks","title":"Use PRQL with knitr","text":"experimental engine option use_glue can used insert R variables PRQL queries. Characters enclosed {{ }} replaced glue::glue() function passed prql_compile() function. R Markdown file converted Markdown file .","code":"```{r} #| echo: false library(prqlr) cyl_min <- 6 derive_or_select <- \"derive\" ``` ```{prql} #| engine-opts: #| use_glue: true from mtcars filter cyl > {{cyl_min}} select {cyl, mpg} {{derive_or_select}} {mpg_int = math.round 0 mpg} take 3 ``` ``` elm from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 ``` ```sql SELECT cyl, mpg, ROUND(mpg, 0) AS mpg_int FROM mtcars WHERE cyl > 6 LIMIT 3 -- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org) ```"},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"use-query-strings-in-r-code-blocks","dir":"Articles","previous_headings":"Engine options > Parameterized PRQL code blocks","what":"Use query strings in R code blocks","title":"Use PRQL with knitr","text":"experimental use_glue option, query string can even defined completely R side. example outputs following.","code":"```{r} #| echo: false library(prqlr) prql_query <- \"from mtcars select cyl\" ``` ```{prql} #| engine-opts: #| use_glue: true {{prql_query}} ``` ``` elm from mtcars select cyl ``` ```sql SELECT cyl FROM mtcars -- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org) ```"},{"path":"https://prql.github.io/prqlc-r/dev/articles/knitr.html","id":"set-special-info-string-to-output-sql-code-blocks","dir":"Articles","previous_headings":"Engine options","what":"Set special info string to output SQL code blocks","title":"Use PRQL with knitr","text":"making SQL code blocks output without DB connection, info_string option can used control info string output code block. convenient want add special attributes used Quarto Markdown files. default value \"sql\". example, following R Markdown file includes PRQL code block info_string option converted … Markdown file.","code":"```{r} #| echo: false library(prqlr) ``` ```{prql} #| engine-opts: #| info_string: '{.sql filename=\"SQL\"}' from mtcars take 3 ``` ``` elm from mtcars take 3 ``` ```{.sql filename=\"SQL\"} SELECT * FROM mtcars LIMIT 3 -- Generated by PRQL compiler version:0.13.3 (https://prql-lang.org) ```"},{"path":"https://prql.github.io/prqlc-r/dev/articles/prqlr.html","id":"work-with-db","dir":"Articles","previous_headings":"","what":"Work with DB","title":"Use PRQL on R","text":"Using DBI package, can execute PRQL queries database. can also use sqldf::sqldf() function automatically register Data Frames database. Since SQLite used via RSQLite, target option prql_compile() set \"sql.sqlite\". Available target names can found prql_get_targets() function.","code":"library(DBI) # Create an ephemeral in-memory SQLite database con <- dbConnect(RSQLite::SQLite(), \":memory:\") # Create a table inclueds `mtcars` data dbWriteTable(con, \"mtcars\", mtcars) # Execute a PRQL query \" from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 \" |> prql_compile(\"sql.sqlite\") |> dbGetQuery(con, statement = _) #> cyl mpg mpg_int #> 1 8 18.7 19 #> 2 8 14.3 14 #> 3 8 16.4 16 \" from mtcars filter cyl > 6 select {cyl, mpg} derive {mpg_int = math.round 0 mpg} take 3 \" |> prql_compile(\"sql.sqlite\") |> sqldf::sqldf() #> Warning: no DISPLAY variable so Tk is not available #> cyl mpg mpg_int #> 1 8 18.7 19 #> 2 8 14.3 14 #> 3 8 16.4 16"},{"path":"https://prql.github.io/prqlc-r/dev/articles/prqlr.html","id":"work-with-r-data-frames","dir":"Articles","previous_headings":"","what":"Work with R Data Frames","title":"Use PRQL on R","text":"Using prqlr tidyquery package, can execute PRQL queries R Data Frames via dplyr. dplyr popular R package manipulating Data Frames, PRQL syntax similar dplyr syntax. Let’s run query aggregates Data Frame flights, contained nycflights13 package. query can written dplyr’s functions follows. Note dplyr queries can generated tidyquery::show_dplyr() function!","code":"library(tidyquery) library(nycflights13) \" from flights filter (distance | in 200..300) filter air_time != null group {origin, dest} ( aggregate { num_flts = count this, avg_delay = (average arr_delay | math.round 0) } ) sort {-origin, avg_delay} take 2 \" |> prql_compile() |> query() #> # A tibble: 2 × 4 #> origin dest num_flts avg_delay #> #> 1 LGA BUF 122 -2 #> 2 LGA PWM 273 2 library(dplyr, warn.conflicts = FALSE) library(nycflights13) flights |> filter( distance |> between(200, 300), !is.na(air_time) ) |> group_by(origin, dest) |> summarise( num_flts = n(), avg_delay = mean(arr_delay, na.rm = TRUE) |> round(0), .groups = \"drop\" ) |> arrange(desc(origin), avg_delay) |> head(2) #> # A tibble: 2 × 4 #> origin dest num_flts avg_delay #> #> 1 LGA BUF 122 -2 #> 2 LGA PWM 273 2"},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Tatsuya Shima. Author, maintainer. Authors dependency Rust crates. Author. see inst/AUTHORS file details","code":""},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Shima T, Authors dependency Rust crates (2025). prqlr: R Bindings 'prqlc' Rust Library. R package version 0.9.0.9000, https://github.com/PRQL/prqlc-r, https://prql.github.io/prqlc-r/.","code":"@Manual{, title = {prqlr: R Bindings for the 'prqlc' Rust Library}, author = {Tatsuya Shima and {Authors of the dependency Rust crates}}, year = {2025}, note = {R package version 0.9.0.9000, https://github.com/PRQL/prqlc-r}, url = {https://prql.github.io/prqlc-r/}, }"},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Owners of dependent Rust crates. This list is generated from Crates.io Data :"},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ahash: Tom Kaitchuck "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- aho-corasick: Andrew Gallant "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- allocator-api2: Zakarum "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- android_system_properties: Nicolas Silva "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anstream: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anstyle: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anstyle-parse: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anstyle-query: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anstyle-wincon: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- anyhow: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ariadne: Joshua Barretto "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- autocfg: Josh Stone , Alex Kladov "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- bumpalo: Nick Fitzgerald , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- cfg-if: Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- chrono: Kang Seonghoon , Keegan McAllister "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- chumsky: Joshua Barretto "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- colorchoice: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- core-foundation-sys: Lars Bergstrom , Steven Fackler "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- csv: Andrew Gallant "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- csv-core: Andrew Gallant "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- darling: Ted Driggs "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- darling_core: Ted Driggs "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- darling_macro: Ted Driggs "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- deranged: Jacob Pratt "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- derive_builder: Colin Kiegel , Ted Driggs "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- derive_builder_core: Colin Kiegel , Ted Driggs "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- derive_builder_macro: Ted Driggs "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- dyn-clone: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- either: bluss , Josh Stone , Jack Wrenn "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- enum-as-inner: Benjamin Fry "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- fnv: Simon Sapin , Steven Fackler "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- hashbrown: Amanieu d'Antras "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- heck: srrrse , Jonas Platte "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- hermit-abi: Stefan Lankes , Martin Kröning "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- iana-time-zone: Andrew Straw , René Kijewski "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- iana-time-zone-haiku: Andrew Straw , René Kijewski "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ident_case: Ted Driggs "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- is-terminal: Dan Gohman "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- is_terminal_polyfill: Ed Page "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- itertools: bluss , Jack Wrenn "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- itoa: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- js-sys: Nick Fitzgerald , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- libc: Huon Wilson , gnzlbg , Yuki Okushi , Josh Triplett , Sebastian Dröge "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- log: Huon Wilson , Steven Fackler , Ashley Mannix "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- memchr: Andrew Gallant "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- num-conv: Jacob Pratt "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- num-traits: Josh Stone "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- num_threads: Jacob Pratt , Thomas Hurst "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- once_cell: Alex Kladov , Michal 'vorner' Vaner "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- powerfmt: Jacob Pratt "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- proc-macro2: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- prqlc: Maximilian Roos , Aljaž Mur Eržen "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- prqlc-parser: Maximilian Roos "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- psm: Simonas Kazlauskas "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- quote: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ref-cast: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ref-cast-impl: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- regex: Andrew Gallant , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- regex-automata: Andrew Gallant "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- regex-syntax: Andrew Gallant , Alex Crichton "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- rustversion: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- ryu: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- savvy: Hiroaki Yutani "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- savvy-bindgen: Hiroaki Yutani "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- savvy-ffi: Hiroaki Yutani "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- savvy-macro: Hiroaki Yutani "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- schemars: Graham Esau "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- schemars_derive: Graham Esau "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- semver: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- serde: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- serde_derive: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- serde_derive_internals: David Tolnay "},{"path":"https://prql.github.io/prqlc-r/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"- serde_json: David Tolnay