Skip to content
Prev 19157 / 21312 Next

[Bioc-devel] How to fix the error checked in the development version of miRspongeR

Looks like there's a nasty clash between dbplyr (CRAN) and the devel 
version of clusterProfiler:

 > library(clusterProfiler)
 > library(dbplyr)
Error in completeSubclasses(classDef2, class1, obj, where) :
 ? trying to get slot "subclasses" from an object of a basic class 
("NULL") with no slots
Error: package or namespace load failed for ?dbplyr?:
 ?.onLoad failed in loadNamespace() for 'dbplyr', details:
 ? call: setClass(cl, contains = c(prevClass, "VIRTUAL"), where = where)
 ? error: error in contained classes ("character") for class ?ident?; 
class definition removed from ?dbplyr?

This is on any platform with Bioc-devel and the latest version of each 
package:

 ? > packageVersion("clusterProfiler")
 ? [1] ?4.5.2?
 ? > packageVersion("dbplyr")
 ? [1] ?2.2.1?

Note that you need to load the two packages in this order to get this 
error. Loading them in the opposite order works fine.

This seems to break miRspongeR thru a series of events that involve the 
imports made by the SPONGE package:? miRspongeR imports clusterProfiler 
and SPONGE, in that order, and SPONGE itself imports dbplyr via tidyverse.

This is something you'll have to discuss with the clusterProfiler and/or 
dbplyr maintainers.

Finally note that, when miRspongeR is loaded, sessionInfo() reports 
about 200 packages loaded via a namespace! This is obviously a very 
fragile situation. Reducing that number would help make the package less 
vulnerable to these sorts of clash. Many of those "loaded via a 
namespace" packages are actually a consequence of SPONGE itself 
importing many many things (it imports the full tidyverse!), so there's 
probably some room for improvement on that side too.

Best,

H.
On 20/09/2022 13:32, Herv? Pag?s wrote: