Hi,
I found following error when I tried running the following example code from regioneR vignette.
pt_Rad21_5k_vs_Ctcf <- permTest(A=HepG2_Rad21_5K, B=HepG2_Ctcf, ntimes=1000,
randomize.function=circularRandomizeRegions,
evaluate.function=numOverlaps, count.once=TRUE,
+ genome="hg19", mc.set.seed=FALSE, mc.cores=4)
Error in if (alt == "less") { : missing value where TRUE/FALSE needed
In addition: Warning messages:
1: In mclapply(c(1:ntimes), randomize_and_evaluate, ...) :
all scheduled cores encountered errors in user code
2: In mean.default(rand.ev, na.rm = TRUE) :
argument is not numeric or logical: returning NA
Thank you

I found the following error message.
Error in which(genome == inst_pkgs[, "provider_version"]) :
error in evaluating the argument 'x' in selecting a method for function 'which': Error in `[.data.frame`(inst_pkgs, , "provider_version") :
undefined columns selected
Thank you.
Hmm... I think it might come from an unavailable genome, although the error message should be quite more clear.
Could you check if the genome is available with
You should see "BSgenome.Hsapiens.UCSC.hg19.masked" in the output.
If it's not installed, try installing it with biocLite.
It could also be due to out-of-date packages. Maybe you can try with biocValid and see if your setup is up-to date
source("https://bioconductor.org/biocLite.R") biocValid()Thank you. The issue is with the installed genome.
Cheers