-
Notifications
You must be signed in to change notification settings - Fork 5
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
The 'statement' argument to dbGetQuery and dbSendQuery methods isn't exposed in older versions of R #170
Comments
Hi @tyner, thanks for identify this issue. I will look into this to see if it is a bug within the package. |
@tyner just added a fix to the current PR branch remotes::install_github("dyfanjones/noctua", ref="bump-dev") |
Thanks for the quick turnaround! I ran into a bit of a snag when it asked about upgrading remotes::install_github("dyfanjones/noctua", ref="bump-dev")
remotes::install_github("dyfanjones/noctua", ref="bump-dev")
|
Intersting, remotes install worked for me. However if you have all the dependencies you can try remotes::install_github("dyfanjones/noctua", ref="bump-dev", dependencies = FALSE) Note if you don't have the dependencies this will fail. |
That did the trick. I have tested the new version of I am still curious to learn if R-core had intentionally made In any case, thank you Dyfan! |
No worries, I will push these changes to cran next week. If you need them sooner please let me know. |
This has now been pushed to the cran in release 2.4.0. |
Issue Description
The 'statement' argument to dbGetQuery and dbSendQuery methods isn't exposed in older versions of R, resulting in an error that it cannot find the 'statement' object.
Reproducible Example
First, install version 2.3.0 of the noctua package under R version 3.4.4. Then take a look at
It will say:
and
Whereas, under R version 3.5.0 (and later), the methods do expose the statement argument, and there is no error when using them. So naturally I am wondering if this is due to R-core correcting a bug going from version 3.4.4 to 3.5.0 of R, or could it be considered a bug in noctua itself? If the former, should noctua require R version >= 3.5.0? In any case, curious to hear your thoughts or suggestions.
Session Info
The text was updated successfully, but these errors were encountered: