I'm using setdiff() with two GR objects and before updating R on my computer my code worked fine:
library(GenomicFeatures)
library(data.table)
library("TxDb.Celegans.UCSC.ce6.ensGene")
txdb<-TxDb.Celegans.UCSC.ce6.ensGene
introns<-intronsByTranscript(txdb)
exons<-exons(txdb)
minimal_introns<-setdiff(unlist(introns),exons,ignore.strand=F)
but now I have this error:
Error in setdiff(unlist(introns), unlist(exons), ignore.strand = F) : unused argument (ignore.strand = F)
if I run setdiff() without ignore.strand= F I have this:
Error in as.vector(x) : no method for coercing this S4 class to a vector
I found a post that suggest some problem with the NAMESPACE file https://stat.ethz.ch/pipermail/bioconductor/2014-September/061440.html
But I don't know where to find that NAMESPACE file and how to fix it.