You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. I'll have a look. This could happen somewhere in knitreng_sql() engine from where we retrieve the code chunk content to pass it to DBI::dbSendQuery().
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
formatted your issue so it is easier for us to read?
included a minimal, self-contained, and reproducible example?
pasted the output from
xfun::session_info('rmarkdown')
in your issue?upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
installed and tested your bug with the development version of the rmarkdown package using
remotes::install_github("rstudio/rmarkdown")
?1. Issue detail
Rmarkdown SQL chunk fail to detect
dollar-quoted string constants
feature in postgresql database.According to the doc from postgres website(https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS), postgres has a feature to facilitate reading strings with escaped strings in session 4.1.2.4. Dollar-Quoted String Constants.
The sql query example works well in R script, but returns error in R SQL chunk.
2. Reproducible example
R script version:
Console returns:
Markdown script version:
3.
xfun::session_info('rmarkdown')
Since the R script version worked fine, so I guess the key may lays in rmarkdown.
The text was updated successfully, but these errors were encountered: