Open daranzolin opened 5 months ago
There are several options for implementation.
Pros: Minimal changes needed to API and code. Cons: Can't modify and preview query results in RStudio (but could in Visual Studio), no syntax highlighting
Pros: Can modify and view query results in RStudio. Cons: Significant changes to underlying code, plus quarto dependency, plus some visual awkwardness:
...
tar_prql(query, "queries/prql_query.qmd")
...
Enhancement suggested in https://github.com/rstudio/rstudio/issues/14547 Pros: Minimal changes needed. Cons: Might never happen
Rather than a separate function, this could maybe better work as a separate argument to
tar_sql
e.g.is_prql = TRUE
. Then callprqlr::prql_compile()
withinsource_sql_to_dataframe
.