This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Bioconductor - Error : Function found is not S4 generic

I am trying to use the GenomicRanges and ggbio packages. When I try and load them I get this error.

> library("GenomicRanges")
Loading required package: IRanges
Error : Function found when exporting methods from the namespace 'IRanges' which is not S4 generic: 'relist'
Error: package 'IRanges' could not be loaded

Why is this and how do I fix it?

r bioconducto softwareerror

1 answer

Ahh, I restarted R and everything seems to be working.

Sometimes, something in your workspace can conflict with what is being loaded, I guess you had a function relist defined. Always try to load R with R --vanilla if you experience something like this.

Log in to answer this question.