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
Issue with annotation database connection *only* in RStudio #9219
Comments
I experience the exact same issue (R version 4.0.5). For some reason, |
Also just having this issue after no problems yesterday (R version 4.0.3 ). My issue is with library(org.Mm.eg.db). I have installed a few new packages so wondering if its related to some sort of conflict. Edit - Like the OP I have also been connecting to other databases (topGO) |
Same issue here. Works when I load the package in the terminal but not in RStudio. |
Thanks; I've reproduced this on my Linux VM as well. I'll try to investigate today. |
Here's the associated call that is failing:
For whatever reason, the attempt to establish that connection succeeds in plain R but not in RStudio. |
In the interim, as a workaround, you can set:
I think an update to the RSQLite package might have broken compatibility with RStudio's connection observer, which is used to update the Connections pane when new connections are opened.
|
Marking as 1.4-JR as, even if there might be an issue with how RSQLite is communicating with RStudio here (via the connections observer) it absolutely should not prevent packages from loading or creating connections. (It should just imply that the Connections pane might not work as expected.) |
Great! Thank you SO MUCH- I'll try that out and let you know if it works for me as well! I was just about to mention that I did notice the connections pane would frequently be opened/populated already when I opened RStudio (and the previously mentioned "dbDisconnect" issue). It's still very strange to me that the issue still persist in RStudio somehow even after uninstalling+reinstalling and removing all configuration files (that I know of/are removed as standard uninstall). |
Sorry for the delay in response, but I can attest the code you recommended (below) worked to allow normal usage of the 'org.' packages in RStudio (for me anyway). Thank you again!
|
Will be fixed in the next daily builds. Note that verification should be done with
The error is still reported, but is now non-fatal and can be hidden if desired. |
Note that the issue is resolved also in RSQLite 2.2.7, so if you install the latest-available version of RSQLite the version should not occur regardless of version of RStudio. |
I can verify for me at least that this worked- installing RSQLite 2.2.7, restarting R, and reloading my packages resulted in my code now working with no errors. Thank you for the info! |
Verified that error is displayed but is non-fatal using
With Tested with RStudio Server 1.4.1687 on Ubuntu 20.04 via Chrome on MacOS 11.3. |
System details
Steps to reproduce the problem
Open RStudio Desktop, enter 'library(org.Hs.eg.db)' or any other 'org...db' (this happens for 'org.Hs.eg.db', 'org.Mm.eg.db' and 'org.Dm.eg.db' for me). It's not an issue with R because when I run R in terminal or VSCode this issue never happens and everything works perfectly.
Describe the problem in detail
So when I try to load an 'org.' annotation library/db, it loads all required packages, but when it gets to the 'org.' package, it gives an error message. Here is example code with the error:
I have uninstalled RStudio and all configuration directories/files, and reinstalled, and this error persists. I have restarted my computer. It has rendered using this package while in RStudio impossible. However, everything works fine in R or another program (VSCode) running R.
Another error message that may also be related- when I load other databases (some others such as 'GO.db' still seem to work), I get a warning message:
I am doing a fairly complex bit of code in RMD and recently RStudio crashed while working on this. I'm not sure, but it's possible it crashed while communicating with a database and somehow that connection is persisting and can't be closed in the IDE. But I can't figure out why uninstalling RStudio and configuration (as well as restarting my computer) doesn't remove this?
Describe the behavior you expected
Upon "library(org.Hs.eg.db)" the library loads and there is no error thrown.
The text was updated successfully, but these errors were encountered: