Running ‘testthat.R’ [11s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sims)
  > 
  > test_check("sims")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • only test getwd at console (1)
  • only visually test add progress bar at console (1)
  • only visually test sims progress bar at console (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-add.R:182:3): sims_add R ────────────────────────────────────────
  Error: object 'nl' not found
  Backtrace:
       █
    1. ├─testthat::expect_true(...) test-add.R:182:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─sims::sims_simulate(...)
    5.   └─sims:::generate_datasets(...)
    6.     └─future.apply::future_lapply(...)
    7.       └─future.apply:::future_xapply(...)
    8.         ├─future::value(fs)
    9.         └─future:::value.list(fs)
   10.           ├─future::resolve(...)
   11.           └─future:::resolve.list(...)
   12.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13.               └─future:::signalConditions(...)
  ── Error (test-simulate.R:954:3): with R code ──────────────────────────────────
  Error: object 'nl' not found
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-simulate.R:954:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─sims::sims_simulate("a <- runif(1, 0, 1)", stochastic = NA)
    5.   └─sims:::generate_datasets(...)
    6.     └─future.apply::future_lapply(...)
    7.       └─future.apply:::future_xapply(...)
    8.         ├─future::value(fs)
    9.         └─future:::value.list(fs)
   10.           ├─future::resolve(...)
   11.           └─future:::resolve.list(...)
   12.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13.               └─future:::signalConditions(...)
  ── Error (test-simulate.R:1029:3): with R code in parallel ─────────────────────
  Error: object 'nl' not found
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-simulate.R:1029:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─sims::sims_simulate("a <- runif(1, 0, 1)", nsims = 2, )
    5.   └─sims:::generate_datasets(...)
    6.     └─future.apply::future_lapply(...)
    7.       └─future.apply:::future_xapply(...)
    8.         ├─future::value(fs)
    9.         └─future:::value.list(fs)
   10.           ├─future::resolve(...)
   11.           └─future:::resolve.list(...)
   12.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13.               └─future:::signalConditions(...)
  ── Error (test-simulate.R:1051:3): with R code and single stochastic node ──────
  Error: object 'nl' not found
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-simulate.R:1051:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─sims::sims_simulate("a <- runif(1, 0, 1)", stochastic = TRUE)
    5.   └─sims:::generate_datasets(...)
    6.     └─future.apply::future_lapply(...)
    7.       └─future.apply:::future_xapply(...)
    8.         ├─future::value(fs)
    9.         └─future:::value.list(fs)
   10.           ├─future::resolve(...)
   11.           └─future:::resolve.list(...)
   12.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13.               └─future:::signalConditions(...)
  ── Error (test-simulate.R:1077:3): with R code and stochastic and deterministic nodes ──
  Error: object 'nl' not found
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-simulate.R:1077:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─sims::sims_simulate(...)
    5.   └─sims:::generate_datasets(...)
    6.     └─future.apply::future_lapply(...)
    7.       └─future.apply:::future_xapply(...)
    8.         ├─future::value(fs)
    9.         └─future:::value.list(fs)
   10.           ├─future::resolve(...)
   11.           └─future:::resolve.list(...)
   12.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13.               └─future:::signalConditions(...)
  ── Error (test-simulate.R:1105:3): with R code & stochastic & deterministic nodes & different rdist ──
  Error: object 'nl' not found
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-simulate.R:1105:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─sims::sims_simulate(...)
    5.   └─sims:::generate_datasets(...)
    6.     └─future.apply::future_lapply(...)
    7.       └─future.apply:::future_xapply(...)
    8.         ├─future::value(fs)
    9.         └─future:::value.list(fs)
   10.           ├─future::resolve(...)
   11.           └─future:::resolve.list(...)
   12.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13.               └─future:::signalConditions(...)
  
  [ FAIL 6 | WARN 0 | SKIP 3 | PASS 183 ]
  Error: Test failures
  Execution halted