Hi
I intend to upgrade the Debian package of qvalue and tried to test it by trying to reproduce vignettes/qvalue.Rnw but failed.
> library(qvalue)
> data(hedenfalk)
> length(hedenfalk)
[1] 3
> hist(hedenfalk)
Error in hist.default(hedenfalk) : 'x' must be numeric
Any hint what might be wrong here?
Kind regards
Andreas.
(I'm not the qvalue maintainer)
I was able to reproduce this with the devel version of Bioc (sessionInfo below). I got the following traceback afterwards:
3: stop("'x' must be numeric") 2: hist.default(hedenfalk) 1: hist(hedenfalk)
Turns out
hedenfalk
is a list.It works if you say
hist.default(unlist(hedenfalk))
So maybe that's a clue for the qvalue maintainer.
> sessionInfo() R version 3.2.1 (2015-06-18) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux stretch/sid
locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] qvalue_2.1.0 BiocInstaller_1.19.8
loaded via a namespace (and not attached): [1] Rcpp_0.11.6 digest_0.6.8 MASS_7.3-42 grid_3.2.1 [5] plyr_1.8.3 gtable_0.1.2 magrittr_1.5 scales_0.2.5 [9] ggplot2_1.0.1 stringi_0.5-5 reshape2_1.4.1 splines_3.2.1 [13] proto_0.3-10 tools_3.2.1 stringr_1.0.0 munsell_0.4.2 [17] colorspace_1.2-6 >
I need to check things thorough. I noticed that I was working on an old vignettes file. May be I made some unneeded noise.