Package: intrinsicFRP Check: tests New result: ERROR Running ‘testthat.R’ [167s/168s] 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(intrinsicFRP) > > test_check("intrinsicFRP") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1138 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-identification_tests.R:80:3'): Test ChenFang2019BetaRankTest and IterativeKleibergenPaap2006BetaRankTest ── Expected `ChenFang2019BetaRankTest(returns, random_factors)` to run without any errors. i Actually got a with text: solve(): solution not found [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1138 ] Error: Test failures Execution halted Package: sharp Check: examples New result: ERROR Running examples in ‘sharp-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: SelectionAlgo > ### Title: Variable selection algorithm > ### Aliases: SelectionAlgo > > ### ** Examples > > # Data simulation (univariate outcome) > set.seed(1) > simul <- SimulateRegression(pk = 50) > > # Running the LASSO > mylasso <- SelectionAlgo( + xdata = simul$xdata, ydata = simul$ydata, + Lambda = c(0.1, 0.2), family = "gaussian", + ) > > # Data simulation (multivariate outcome) > set.seed(1) > simul <- SimulateRegression(pk = 50, q = 3) > > # Running multivariate Gaussian LASSO > mylasso <- SelectionAlgo( + xdata = simul$xdata, ydata = simul$ydata, + Lambda = c(0.1, 0.2), family = "mgaussian" + ) Error in `[<-`(`*tmp*`, rownames(tmpbeta), colnames(tmpbeta), y_id, value = tmpbeta) : subscript out of bounds Calls: SelectionAlgo -> do.call -> Execution halted Package: transreg Check: examples New result: ERROR Running examples in ‘transreg-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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 Package: transreg Check: tests New result: ERROR Running ‘testthat.R’ [25s/25s] 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)", "s0"] 7. └─beta["(Intercept)", "s0"] 8. └─Matrix:::.subscript.2ary(x, i, j, drop = TRUE) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 3 ] Error: Test failures Execution halted