Running ‘testthat.R’ [13s/35s]
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(syrup)
  Loading required package: bench
  > 
  > test_check("syrup")
  [ FAIL 7 | WARN 0 | SKIP 2 | PASS 1 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-syrup.R:70:3', 'test-syrup.R:76:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-syrup.R:5:3'): syrup works ───────────────────────────────────
  Expected `res <- syrup(res_with_syrup <- Sys.sleep(1))` to run without any errors.
  i Actually got a <rlang_error> with text:
    Unable to retrieve resource usage results from the temporary session.
    i This is an internal error that was detected in the syrup package.
      Please report it at <https://github.com/simonpcouch/syrup/issues> with a reprex (<https://tidyverse.org/help/>) and the full backtrace.
  ── Error ('test-syrup.R:16:3'): syrup works ────────────────────────────────────
  Error in `eval(code, test_env)`: object 'res' not found
  Backtrace:
      ▆
   1. └─testthat::expect_s3_class(res, "tbl_df") at test-syrup.R:16:3
   2.   └─testthat::quasi_label(enquo(object), arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Failure ('test-syrup.R:30:3'): syrup(peak = TRUE) works ─────────────────────
  Expected `res <- syrup(Sys.sleep(1), peak = TRUE)` to run without any errors.
  i Actually got a <rlang_error> with text:
    Unable to retrieve resource usage results from the temporary session.
    i This is an internal error that was detected in the syrup package.
      Please report it at <https://github.com/simonpcouch/syrup/issues> with a reprex (<https://tidyverse.org/help/>) and the full backtrace.
  ── Error ('test-syrup.R:37:3'): syrup(peak = TRUE) works ───────────────────────
  Error in `eval(code, test_env)`: object 'res' not found
  Backtrace:
      ▆
   1. └─testthat::expect_s3_class(res, "tbl_df") at test-syrup.R:37:3
   2.   └─testthat::quasi_label(enquo(object), arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Failure ('test-syrup.R:45:3'): syrup(interval) works ────────────────────────
  Expected `res_01 <- syrup(Sys.sleep(1), interval = 0.01)` to run without any errors.
  i Actually got a <rlang_error> with text:
    Unable to retrieve resource usage results from the temporary session.
    i This is an internal error that was detected in the syrup package.
      Please report it at <https://github.com/simonpcouch/syrup/issues> with a reprex (<https://tidyverse.org/help/>) and the full backtrace.
  ── Failure ('test-syrup.R:52:3'): syrup(interval) works ────────────────────────
  Expected `res_1 <- syrup(Sys.sleep(1), interval = 0.1)` to run without any errors.
  i Actually got a <rlang_error> with text:
    Unable to retrieve resource usage results from the temporary session.
    i This is an internal error that was detected in the syrup package.
      Please report it at <https://github.com/simonpcouch/syrup/issues> with a reprex (<https://tidyverse.org/help/>) and the full backtrace.
  ── Error ('test-syrup.R:59:3'): syrup(interval) works ──────────────────────────
  Error in `eval(code, test_env)`: object 'res_01' not found
  Backtrace:
      ▆
   1. └─testthat::expect_s3_class(res_01, "tbl_df") at test-syrup.R:59:3
   2.   └─testthat::quasi_label(enquo(object), arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  
  [ FAIL 7 | WARN 0 | SKIP 2 | PASS 1 ]
  Error: Test failures
  Execution halted