-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move knitr SQL Engine into DBI? #321
Comments
Thanks. I like the idea of a better engine, I don't think it's a good fit for this repository. |
@rnorberg I'll be happy if you could find a new home for the |
The @yihui, I'd be happy to work on it/maintain it in the |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. |
I think the three most commonly used R Markdown chunk engines are R, python, and SQL. I noticed that
knitr
has a rudimentarypython
engine, but thereticulate
package contains its own, much more complex python engine. In this issue in theknitr
repo, someone's asking about passing passing parameters in a SQL chunk and @yihui basically says to ask @javierluraschi because he wrote the SQL engine. I think it makes sense to move the SQL engine into a repo that's all about executing SQL, or maybe to create a second, more sophisticated SQL engine for R Markdown in this repo.Some ideas for an enhanced SQL engine:
immediate
, todbGetQuery
/dbExecute
via chunk optionsdbExecute
ordbGetQuery
(see here)dbExecute()
, emit amessage()
about the number of affected rows (potentially helpful to the author, easily hidden from output with themessage = FALSE
chunk option)sqlCommentSpec
instead of regex for/* ... */
and/or-- ...
What do you think about adding a
knitr
SQL engine to theDBI
package? I'd be willing to take a shot at a first draft.The text was updated successfully, but these errors were encountered: