Package: wrGraph Check: examples New result: ERROR Running examples in ‘wrGraph-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: VolcanoPlotW > ### Title: Volcano-Plot (Statistical Test Outcome versus Relative Change) > ### Aliases: VolcanoPlotW > > ### ** Examples > > library(wrMisc) > set.seed(2005); mat <- matrix(round(runif(900),2), ncol=9) > rownames(mat) <- paste0(rep(letters[1:25], each=4), rep(letters[2:26],4)) > mat[1:50,4:6] <- mat[1:50,4:6] + rep(c(-1,1)*0.1,25) > mat[3:7,4:9] <- mat[3:7,4:9] + 0.7 > mat[11:15,1:6] <- mat[11:15,1:6] - 0.7 > ## assume 2 groups with 3 samples each > gr3 <- gl(3, 3, labels=c("C","A","B")) > tRes2 <- moderTest2grp(mat[,1:6], gl(2,3), addResults = c("FDR","means")) > # Note: due to the small number of lines only FDR chosen to calculate > VolcanoPlotW(tRes2) VolcanoPlotW : Argument 'filtFin' seems invalid (should be logical vector of length of number of elements for plotting ) > ## Add names of points passing custom filters > VolcanoPlotW(tRes2, FCth=1.3, FdrThrs=0.2, namesNBest="passThr") VolcanoPlotW : Argument 'filtFin' seems invalid (should be logical vector of length of number of elements for plotting ) > > ## assume 3 groups with 3 samples each > tRes <- moderTestXgrp(mat, gr3, addResults = c("FDR","means")) > # Note: due to the small number of lines only FDR chosen to calculate > VolcanoPlotW(tRes) Warning in matrix(grp[pwGrInd], ncol = length(grp)) : data length [2] is not a sub-multiple or multiple of the number of columns [3] Error in grpMeans[, useCompNa2[2]] : subscript out of bounds Calls: VolcanoPlotW Execution halted Package: wrGraph Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘wrGraphVignette1.Rmd’ using rmarkdown Quitting from wrGraphVignette1.Rmd:499-506 [Volc2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `grpMeans[, useCompNa2[2]]`: ! subscript out of bounds --- Backtrace: ▆ 1. └─wrGraph::VolcanoPlotW(tRes, FCth = 1.3, FdrThrs = 0.2, useComp = 2) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'wrGraphVignette1.Rmd' failed with diagnostics: subscript out of bounds --- failed re-building ‘wrGraphVignette1.Rmd’ SUMMARY: processing the following file failed: ‘wrGraphVignette1.Rmd’ Error: Vignette re-building failed. Execution halted