Hello,
As far as I understand the DESeq2 package is automatically loaded when R is started up. I am not interested in using DESeq2 anymore, so how can I stop it from automatically loading? It's been interfering with the installation of other R packages, as sometimes I need to restart my session so that the package I am attempting to install would first update an already existing package. Because DESeq2 masks so many packages and loads first, I get basically stuck in a loop.
The other issue is errors related to DESeq2 popping up when I don't have the package installed. I am using the same RStudio project file on both the PC and laptop. However, I have DESeq2 "installed" on the PC but not on the laptop. I guess that some settings in the RStudio project file attempt to load the DESeq2 package when I have the project open on my laptop, but to no avail because I don't have the package on it. The errors are
Loading required package: DESeq2
Error in .requirePackage(package) :
unable to find required package ‘DESeq2’
In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘DESeq2’
Loading required package: DESeq2
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘DESeq2’
They pop up randomly, even when the packages that are loaded at the moment are not associated with DESeq2 (e.g. ggplot2).
So how do I uninstall DESeq2 and stop the errors? It's been my most frustrating experience with a package yet.
Yes, to affirm Axel's answer, this has nothing to do with the DESeq2 software but something about your R or RStudio setup.
Somewhere you are attempting to load DESeq2 by default when you start R, and it's most likely from the RStudio project settings.
I am not sure how it has nothing to do with DESeq2 if it's the only package that RStudio loads up with the message
Loading required package: DESeq2
Loading required package: S4Vectors
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel
I have multiple objects from different packages in my workspace, but it's only DESeq2 that's nagging me.
It sounds like what is happening is your have saved some DESeq2 objects to automatically load when you start R, and this is triggering the package that is needed to show and work with the objects.
Then you removed the DESeq2 package so you are getting an error.
What I meant was that, what you are experiencing isn’t a special property of DESeq2 but would happen if you repeated the above procedure with another package. DESeq2 doesn’t have any special auto-loading behavior.
Why don’t you try to either reinstall DESeq2 or remove these objects from the autoloaded workspace.