Package: VsusP Check: examples New result: ERROR Running examples in ‘VsusP-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: OptimalHbi > ### Title: Variable selection using shrinkage priors :: OptimalHbi > ### Aliases: OptimalHbi > > ### ** Examples > > > n <- 10 > p <- 5 > X <- matrix(rnorm(n * p), n, p) > beta <- exp(rnorm(p)) > Y <- as.vector(X %*% beta + rnorm(n, 0, 1)) > df <- data.frame(X, Y) > rv.hs <- bayesreg::bayesreg(Y ~ ., df, "gaussian", "horseshoe+", 110, 100) Error in .check_ncores(length(names)) : 31 simultaneous processes spawned Calls: -> -> makePSOCKcluster -> .check_ncores Execution halted Package: VsusP Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘VsusPVignette.Rmd’ using rmarkdown Quitting from lines 138-143 [s2m-apply] (VsusPVignette.Rmd) Error: processing vignette 'VsusPVignette.Rmd' failed with diagnostics: 31 simultaneous processes spawned --- failed re-building ‘VsusPVignette.Rmd’ SUMMARY: processing the following file failed: ‘VsusPVignette.Rmd’ Error: Vignette re-building failed. Execution halted Package: VsusP Check: tests New result: ERROR Running ‘testthat.R’ [1s/1s] 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(VsusP) > > test_check("VsusP") [ FAIL 2 | WARN 0 | SKIP 0 | PASS 12 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-S2MVarSelection.R:10:3'): S2MVarSelection works ──────────────── Error in `.check_ncores(length(names))`: 31 simultaneous processes spawned Backtrace: ▆ 1. └─bayesreg::bayesreg(...) at test-S2MVarSelection.R:10:3 2. └─parallel::makeCluster(n.cores) 3. └─parallel::makePSOCKcluster(names = spec, ...) 4. └─parallel:::.check_ncores(length(names)) ── Error ('test-Sequential2Means.R:58:3'): Sequential2Means works ────────────── Error in `.check_ncores(length(names))`: 31 simultaneous processes spawned Backtrace: ▆ 1. ├─testthat::expect_length(...) at test-Sequential2Means.R:58:3 2. │ └─testthat::quasi_label(enquo(object), arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─VsusP::Sequential2Means(X, Y, b.i, "ridge", 200, 100) 5. └─bayesreg::bayesreg(...) 6. └─parallel::makeCluster(n.cores) 7. └─parallel::makePSOCKcluster(names = spec, ...) 8. └─parallel:::.check_ncores(length(names)) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 12 ] Error: Test failures Execution halted