Skip to content
Prev 20756 / 21312 Next

[Bioc-devel] Testing the srnadiff package with R CMD check takes lots of time

I tried running your tests (checked out from github repo at

commit e580d52d7242693b79ec6b8483d68a65d6fb9e02 (HEAD -> master,
origin/master, origin/HEAD)
Author: Matthias Zytnicki <matthias.zytnicki at inra.fr>
Date:   Mon Mar 6 21:35:41 2023 +0100

    version bump

and ran into some serious issues -- a very long stream of
+     object <- srnadiffExp(bamFiles, sampleInfo, annotReg)
+     expect_is(object, "srnadiffExp")
+  .... [TRUNCATED]
?? Warning: Running implemented constructor
????????????????????????????????????????????????????????????????????????????
subscript out of bounds (index 1 >= vector size 1)
Backtrace:
    ?
 1. ??srnadiff::srnadiffExp(bamFiles, sampleInfo, annotReg) at
test_AllClass.R:21:5
 2.   ??srnadiff:::computeNormFactors(object at coverages)
 3.     ??srnadiff:::rcpp_normalization(cvg, librarySize)

?? Warning: Running implemented constructor
????????????????????????????????????????????????????????????????????????????
subscript out of bounds (index 2 >= vector size 1)
Backtrace:
    ?
 1. ??srnadiff::srnadiffExp(bamFiles, sampleInfo, annotReg) at
test_AllClass.R:21:5
 2.   ??srnadiff:::computeNormFactors(object at coverages)
 3.     ??srnadiff:::rcpp_normalization(cvg, librarySize)

Admittedly this is not the right environment to reproduce what you are
seeing but
perhaps it is somewhat helpful.  Have you tried running the tests in
the bioc BBS container?
see https://github.com/bioconductor/bioconductor_salt/pkgs/container/bioconductor_salt

R version 4.4.2 (2024-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.2

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;
 LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] srnadiff_1.19.2 testthat_3.2.2  rmarkdown_2.29

loaded via a namespace (and not attached):
  [1] later_1.4.1                 BiocIO_1.16.0
  [3] bitops_1.0-9                filelock_1.0.3
  [5] tibble_3.2.1                XML_3.99-0.17
  [7] rpart_4.1.23                startup_0.23.0


On Mon, Dec 2, 2024 at 3:13?PM Matthias Zytnicki
<matthias.zytnicki at inrae.fr> wrote: