* using log directory 'd:/Rcompile/CRANpkg/local/4.4/transreg.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'transreg/DESCRIPTION' ... OK * this is package 'transreg' version '1.0.3' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... NOTE Packages suggested but not available for checking: 'fwelnet', 'doMC' * 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 'transreg' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [6s] OK * checking Rd files ... [1s] 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 ... [9s] ERROR Running examples in 'transreg-Ex.R' failed The error most likely occurred in: > ### Name: plot.transreg > ### Title: Plot transreg-object > ### Aliases: plot.transreg > > ### ** Examples > > #--- simulation --- > set.seed(1) > n <- 100; p <- 500 > X <- matrix(rnorm(n=n*p),nrow=n,ncol=p) > beta <- rnorm(p) #*rbinom(n=n,size=1,prob=0.2) > prior1 <- beta + rnorm(p) > prior2 <- beta + rnorm(p) > prior3 <- rnorm(p) > prior4 <- rnorm(p) > y <- X %*% beta > > prior <- cbind(prior1,prior2,prior3,prior4) > object <- transreg(y=y,X=X,prior=prior,alpha=0,stack=c("sta","sim")) > > plot(object,stack="sta") Error in .subscript.2ary(x, i, j, drop = TRUE) : subscript out of bounds Calls: plot ... eval -> eval -> .coef.sta -> [ -> [ -> .subscript.2ary Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [29s] ERROR Running 'testthat.R' [28s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(transreg) > > testthat::test_check(package="transreg",stop_on_warning=FALSE) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 3 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test.R:56:5'): (code run outside of `test_that()`) ────────────────── Error in `.subscript.2ary(x, i, j, drop = TRUE)`: subscript out of bounds Backtrace: ▆ 1. ├─stats::coef(object = object) at test.R:56:5 2. └─transreg:::coef.transreg(object = object) 3. ├─base::eval(parse(text = paste0(".coef.", stack, "(object=object,...)"))) 4. │ └─base::eval(parse(text = paste0(".coef.", stack, "(object=object,...)"))) 5. └─transreg:::.coef.sta(object = object, ...) 6. ├─beta["(Intercept)", "s2"] 7. └─beta["(Intercept)", "s2"] 8. └─Matrix:::.subscript.2ary(x, i, j, drop = TRUE) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 3 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [5s] OK * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 2 ERRORs, 1 NOTE