Running ‘testthat.R’ [70s/70s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(calculus)
  > 
  > test_check("calculus")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-integral.R:139:3): 202012272219 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = x$error) test-integral.R:139:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:146:3): 202012272220 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = x$error) test-integral.R:146:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:153:3): 202012272221 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = x$error) test-integral.R:153:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:193:3): 202012272226 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:193:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:201:3): 202012272227 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:201:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:209:3): 202012272228 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:209:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:217:3): 202012272229 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:217:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:225:3): 202012272230 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:225:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:233:3): 202012272231 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:233:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:241:3): 202012272232 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:241:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:249:3): 202012272233 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:249:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:314:3): 202012272241 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:314:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:322:3): 202012272242 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:322:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:330:3): 202012272243 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:330:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:338:3): 202012310003 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:338:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  ── Error (test-integral.R:346:3): 202012310004 ─────────────────────────────────
  Error in `all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
      ...)`: length(tolerance) == 1L is not TRUE
  Backtrace:
      █
   1. └─testthat::expect_equal(x$value, y, tolerance = 3 * x$error) test-integral.R:346:2
   2.   ├─testthat::compare(act$val, exp$val, ..., tolerance = tolerance)
   3.   └─testthat:::compare.numeric(act$val, exp$val, ..., tolerance = tolerance)
   4.     ├─base::all.equal(...)
   5.     └─base::all.equal.numeric(...)
   6.       └─base::stopifnot(length(tolerance) == 1L)
  
  [ FAIL 16 | WARN 0 | SKIP 0 | PASS 224 ]
  Error: Test failures
  Execution halted