[Bioc-devel] R CMD check testthat failure in tokay2 (devel branch)
Pages, Herve
hp@ge@ @end|ng |rom |redhutch@org
Thu Apr 18 21:13:29 CEST 2019
Hi Benjamin,
Sorry for the late answer. Looks like things have changed a little bit on the report since your original post. What I see on today's report is a test failure on Windows for the i386 arch only:
https://bioconductor.org/checkResults/3.9/bioc-LATEST/universalmotif/tokay2-checksrc.html
The universalmotif.Rcheck/tests_i386/testthat.Rout.fail file is:
R version 3.6.0 beta (2019-04-12 r76385) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(testthat)
> library(universalmotif)
>
> test_check("universalmotif")
-- 1. Error: viewing motif stacks works (@test_view_motifs.R#39) --------------
could not find function "merge_motifs_get_offset"
1: view_motifs(c(m1, m2)) at testthat/test_view_motifs.R:39
2: lapply(seq_along(mot.mats)[-1], function(x) {
y <- merge_motifs_get_offset(mot.mats[[1]], mot.mats[[x]], method, min.overlap,
mot.ics[[1]], mot.ics[[x]], min.mean.ic, normalise.scores)
merge_add_cols(y)
y
})
3: FUN(X[[i]], ...)
== testthat results ===========================================================
OK: 193 SKIPPED: 2 FAILED: 1
1. Error: viewing motif stacks works (@test_view_motifs.R#39)
Error: testthat unit tests failed
Execution halted
I'm not sure why the merge_motifs_get_offset() function cannot be found when R is running in i386 mode. I see that merge_motifs_get_offset() is implemented in C++ and integrated to the universalmotif package using the Rcpp machinery (with RcppExports.cpp and RcppExports.R files). The package also uses a top-level Makefile and a src/Makevars file. Overall this looks like a relatively complicated setup. Could it be that the issue with the unit test is somehow related to some subtle issue with this setup? Unfortunately I'm not familiar with the Rcpp/RcppExports.cpp/RcppExports.R machinery so I'm not able be provide more help, sorry. Hopefully someone on the list with more experience will be able to help.
Unlikely to be related but FWIW I noted that "[[: not found" is displayed during installation:
https://bioconductor.org/checkResults/3.9/bioc-LATEST/universalmotif/tokay2-install.html
(once during the "install for i386" step and once during the "install for x64" step). Don't know if that's something that you should worry about or not though...
Best,
H.
On 4/9/19 12:31, Benjamin Tremblay wrote:
Hi,
R CMD check on the tokay2 machine fails due to an error in running tests from testthat in the devel branch of my package universalmotif with no indication as to why. Here is the output from R CMD check:
* checking tests ...
** running tests for arch 'i386' ...
Running 'spelling.R'
Running 'testthat.R'
ERROR
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(universalmotif)
>
> test_check("universalmotif")
== testthat results ===========================================================
OK: 211 SKIPPED: 1 FAILED: 0
** running tests for arch 'x64' ...
Running 'spelling.R'
Running 'testthat.R'
OK
And here is the testthat.Rout.fail file:
R Under development (unstable) (2019-03-09 r76216) -- "Unsuffered Consequences"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
library(testthat)
library(universalmotif)
test_check("universalmotif")
== testthat results ===========================================================
OK: 211 SKIPPED: 1 FAILED: 0
Is there any way for me to know what is going on?
Thanks,
Benjamin Tremblay
[[alternative HTML version deleted]]
_______________________________________________
Bioc-devel using r-project.org<mailto:Bioc-devel using r-project.org> mailing list
https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_bioc-2Ddevel&d=DwICAg&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA&m=4TnLfmbrqNHzJ9eUGNM_B-Uv8yp47su45HLGzZmQFaw&s=VvVcCPb17b20Lj8eW6qyU5UCMsjZ__ABfaWESPWEhuM&e=
--
Hervé Pagès
Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024
E-mail: hpages using fredhutch.org<mailto:hpages using fredhutch.org>
Phone: (206) 667-5791
Fax: (206) 667-1319
[[alternative HTML version deleted]]
More information about the Bioc-devel
mailing list