* using log directory ‘/srv/hornik/tmp/CRAN/psBayesborrow.Rcheck’ * using R Under development (unstable) (2024-02-02 r85855) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 17.0.6 (5) Debian flang-new version 17.0.6 (5) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘psBayesborrow/DESCRIPTION’ ... OK * this is package ‘psBayesborrow’ version ‘1.0.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [3s/3s] NOTE Maintainer: ‘Yusuke Yamaguchi ’ New submission Possibly misspelled words in DESCRIPTION: RCT (16:155) RCTs (16:224) confounders (16:407) * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking serialization versions ... OK * checking whether package ‘psBayesborrow’ can be installed ... [520s/517s] OK * used C++ compiler: ‘Debian clang version 17.0.6 (5)’ * checking C++ specification ... OK Not all R platforms support C++17 * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... NOTE Problems with news in ‘NEWS.md’: No news entries found. * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [4s/3s] OK * checking whether the package can be loaded with stated dependencies ... [4s/3s] OK * checking whether the package can be unloaded cleanly ... [4s/3s] OK * checking whether the namespace can be loaded with stated dependencies ... [4s/3s] OK * checking whether the namespace can be unloaded cleanly ... [4s/3s] OK * checking loading without being on the library search path ... [5s/5s] 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 ... [19s/17s] NOTE psborrow.summary: no visible binding for global variable ‘type’ psmatch : medps: no visible binding for global variable ‘X2’ Undefined global functions or variables: X2 type * checking Rd files ... [0s/0s] OK * checking Rd metadata ... OK * checking Rd line widths ... 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 line endings in shell scripts ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking examples ... [14s/14s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [8s/8s] ERROR Running ‘testthat.R’ [8s/8s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(psBayesborrow) > > test_check("psBayesborrow") [ FAIL 1 | WARN 32 | SKIP 0 | PASS 4 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-psBayesborrow.R:77:3'): Check psBayesborrow simulation results ── `th2.sim` not identical to `th2.exp`. 5/25 mismatches (average diff: 0.088) [21] -0.09 - -0.18 == 0.09 [22] -0.11 - -0.14 == 0.03 [23] 0.16 - 0.20 == -0.04 [24] -0.31 - -0.54 == 0.23 [25] 0.17 - 0.12 == 0.05 [ FAIL 1 | WARN 32 | SKIP 0 | PASS 4 ] Error: Test failures Execution halted * checking PDF version of manual ... [4s/4s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 3 NOTEs