Package: BayesSurvive Check: tests New result: ERROR Running ‘testthat.R’ [75s/65s] 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(BayesSurvive) > > test_check("BayesSurvive") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 16 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-general.R:32:1'): (code run outside of `test_that()`) ────────── Error in `x[[jj]][iseq] <- vjj`: replacement has length zero Backtrace: ▆ 1. ├─stats::predict(fit, survObj.new = dataset, times = 8.5, verbose = FALSE) at test-general.R:32:1 2. └─BayesSurvive:::predict.BayesSurvive(...) 3. ├─base::`[<-`(`*tmp*`, 3, , value = ``) 4. └─base::`[<-.data.frame`(`*tmp*`, 3, , value = ``) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 16 ] Error: Test failures Execution halted