* using log directory 'd:/Rcompile/CRANpkg/local/3.5/passt.Rcheck' * using R version 3.5.3 (2019-03-11) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'passt/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'passt' version '0.1.1' * 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 'passt' 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 ... [8s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [4s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [7s] ERROR Running 'testthat.R' [6s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(passt) > > test_check("passt") -- 1. Failure: updt_winner_weights work if there are equal output acti updt_winner_weights(c(1, 0), matrix(rep(0.5, 4), nrow = 2), 0.5) not equal to matrix(c(0.5, 0.75, 0.5, 0.25), nrow = 2). 4/4 mismatches (average diff: 0.25) [1] 0.75 - 0.50 == 0.25 [2] 0.50 - 0.75 == -0.25 [3] 0.25 - 0.50 == -0.25 [4] 0.50 - 0.25 == 0.25 -- 2. Failure: sim 1 produces same results as before (@test-simulation.R#11) -- `sim1_weights` not equal to `sim1_weights_before`. 100/100 mismatches (average diff: 0.0485) [1] 0.0802 - 0.0698 == 0.01047 [2] 0.0608 - 0.0594 == 0.00139 [3] 0.0891 - 0.1461 == -0.05699 [4] 0.0654 - 0.0765 == -0.01101 [5] 0.0690 - 0.0804 == -0.01134 [6] 0.0771 - 0.0737 == 0.00340 [7] 0.0866 - 0.0627 == 0.02392 [8] 0.0637 - 0.0905 == -0.02679 [9] 0.1463 - 0.0857 == 0.06061 ... -- 3. Failure: sim 4 produces same results as before (@test-simulation.R#26) -- `sim4` not equal to `sim4_before`. Component "f_dv": Mean relative difference: 0.1759294 Component "td_dv": Mean relative difference: 0.1087843 Component "d_dv": Mean relative difference: 0.2325671 == testthat results =========================================================== [ OK: 6 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 3 ] 1. Failure: updt_winner_weights work if there are equal output activations (@test-helper_functions.R#19) 2. Failure: sim 1 produces same results as before (@test-simulation.R#11) 3. Failure: sim 4 produces same results as before (@test-simulation.R#26) Error: testthat unit tests failed Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [10s] OK * checking PDF version of manual ... OK * DONE Status: 1 ERROR