Running 'testthat.R' [105s/113s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > suppressPackageStartupMessages(library(testthat))
  > suppressPackageStartupMessages(library(pulsar))
  > 
  > testthat::test_check("pulsar")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 84 ]
  
  == Failed tests ================================================================
  -- Error (???): weird lambda path results in correct error or warning ----------
  Error in `dims - 1L`: non-numeric argument to binary operator
  Backtrace:
       x
    1. +-testthat::expect_warning(...)
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat (local) .capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. \-pulsar (local) pfun(dat$data, fun = fun, fargs = hargs, rep.num = 3, ...)
    7.   \-pulsar:::.try_mclapply(...)
    8.     +-base::withCallingHandlers(...)
    9.     \-parallel::mclapply(X, FUN, mc.cores = mc.cores, ...)
   10.       \-base::lapply(X = X, FUN = FUN, ...)
   11.         \-pulsar (local) FUN(X[[i]], ...)
   12.           +-base::do.call(fun, c(fargs, list(data[ind.sample, ])))
   13.           \-global `<fn>`(seed = 10010, lambda = `<dbl>`, `<dbl[,30]>`)
   14.             \-BigQuic::BigQuic(...)
   15.               \-Matrix::sparseMatrix(...)
  -- Error ('test_pulsar.R:29'): (code run outside of `test_that()`) -------------
  Error in `dims - 1L`: non-numeric argument to binary operator
  Backtrace:
       x
    1. \-global runtests(...) at test_pulsar.R:29:0
    2.   \-pulsar (local) pfun(...)
    3.     \-pulsar:::.try_mclapply(...)
    4.       +-base::withCallingHandlers(...)
    5.       \-parallel::mclapply(X, FUN, mc.cores = mc.cores, ...)
    6.         \-base::lapply(X = X, FUN = FUN, ...)
    7.           \-pulsar (local) FUN(X[[i]], ...)
    8.             +-base::do.call(fun, c(fargs, list(data[ind.sample, ])))
    9.             \-global `<fn>`(seed = 10010, lambda = `<dbl>`, `<dbl[,30]>`)
   10.               \-BigQuic::BigQuic(...)
   11.                 \-Matrix::sparseMatrix(...)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 84 ]
  Error: Test failures
  Execution halted