* using log directory 'd:/Rcompile/CRANpkg/local/4.0/motifr.Rcheck' * using R version 4.0.5 (2021-03-31) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'motifr/DESCRIPTION' ... OK * this is package 'motifr' version '1.0.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'motifr' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [9s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [25s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [30s] ERROR Running 'testthat.R' [30s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(motifr) > library(reticulate) > > test_check("motifr") [ FAIL 2 | WARN 0 | SKIP 0 | PASS 72 ] == Failed tests ================================================================ -- Error (test-core.R:43:3): io_undirected_dummy_net_issue#27 ------------------ Error in `py_call_impl(callable, dots$args, dots$keywords)`: TypeError: 'float' object cannot be interpreted as an integer Detailed traceback: File "C:\Users\CRAN\AppData\Local\R-MINI~1\envs\R-RETI~1\lib\site-packages\sma\rbridge.py", line 133, in distributionMotifsAutoR partial, total = sma.distributionMotifsAuto(G, *motifs, model = model, level = level) File "C:\Users\CRAN\AppData\Local\R-MINI~1\envs\R-RETI~1\lib\site-packages\sma\analyse_distribution.py", line 120, in distributionMotifsAuto expectations = expectedMultiMotifs(G, *arities, roles = roles) File "C:\Users\CRAN\AppData\Local\R-MINI~1\envs\R-RETI~1\lib\site-packages\sma\analyse_distribution.py", line 44, in expectedMultiMotifs return motif_info.expectations(G, *positions, **kwargs) File "C:\Users\CRAN\AppData\Local\R-MINI~1\envs\R-RETI~1\lib\site-packages\sma\analyse_distribution.py", line 166, in expected3Motifs d = sma.densityMatrix(G) File "C:\Users\CRAN\AppData\Local\R-MINI~1\envs\R-RETI~1\lib\site-packages\sma\analyse.py", line 708, in densityMatrix v = sma.edgesCountMatrix(G) File "C:\Users\CRAN\AppData\Local\R-MINI~1\envs\R-RETI~1\lib\site-packages\sma\analyse.py", line 813, in edgesCountMatrix res = numpy.zeros((nTypes, nTypes), dtype=int) Backtrace: x 1. +-reticulate::py_suppress_warnings(motif_summary(ml_net27, lvl_attr = "lvl")) at test-core.R:43:2 2. | +-base::with(warnings$catch_warnings(), expr) 3. | \-reticulate:::with.python.builtin.object(...) 4. | +-base::tryCatch(...) 5. | | \-base tryCatchList(expr, classes, parentenv, handlers) 6. | \-base::force(expr) 7. \-motifr::motif_summary(ml_net27, lvl_attr = "lvl") 8. \-motifr::motifs_distribution(...) 9. \-pkg.env$sma$distributionMotifsAutoR(...) 10. \-reticulate:::py_call_impl(callable, dots$args, dots$keywords) -- Error (test-count_motifs.R:101:3): exemplify_motif -------------------------- Error in `py_call_impl(callable, dots$args, dots$keywords)`: StopIteration: Detailed traceback: File "C:\Users\CRAN\AppData\Local\R-MINI~1\envs\R-RETI~1\lib\site-packages\sma\analyse_frontend.py", line 220, in exemplifyMotif return next(source & selector) File "C:\Users\CRAN\AppData\Local\R-MINI~1\envs\R-RETI~1\lib\site-packages\sma\iterate.py", line 54, in __next__ return self.it.__next__() Backtrace: x 1. +-testthat::expect_null(...) at test-count_motifs.R:101:2 2. | \-testthat::quasi_label(enquo(object), label, arg = "object") 3. | \-rlang::eval_bare(expr, quo_get_env(quo)) 4. \-motifr::exemplify_motif(motifr::tidygraph_dummy_net, "1,2[I.B]") 5. \-pkg.env$sma$exemplifyMotif(py_g, motif) 6. \-reticulate:::py_call_impl(callable, dots$args, dots$keywords) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 72 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [4s] OK * checking PDF version of manual ... OK * DONE Status: 1 ERROR