Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(minval)
  > 
  > test_check("minval")
  [ FAIL 18 | WARN 0 | SKIP 0 | PASS 12 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test.checkBalance.R:12:3): checkBalance function: Output class is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
       ▆
    1. ├─testthat::expect_true(...) at test.checkBalance.R:12:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::is.vector(...)
    5. └─minval::checkBalance(...)
    6.   ├─base::as.vector(x = reactionList[validateSyntax(reactionList = reactionList)])
    7.   └─minval::validateSyntax(reactionList = reactionList)
    8.     ├─base::unlist(...)
    9.     └─base::lapply(...)
   10.       └─minval FUN(X[[i]], ...)
  ── Error (test.checkBalance.R:20:3): checkBalance function: Output value is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test.checkBalance.R:20:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─minval::checkBalance(...)
   5.   ├─base::as.vector(x = reactionList[validateSyntax(reactionList = reactionList)])
   6.   └─minval::validateSyntax(reactionList = reactionList)
   7.     ├─base::unlist(...)
   8.     └─base::lapply(...)
   9.       └─minval FUN(X[[i]], ...)
  ── Error (test.orphanMetabolites.R:3:3): orphanMetabolites function: output class is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test.orphanMetabolites.R:3:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::is.vector(...)
   5. └─minval::orphanMetabolites(...)
   6.   └─minval::validateSyntax(reactionList = reactionList)
   7.     ├─base::unlist(...)
   8.     └─base::lapply(...)
   9.       └─minval FUN(X[[i]], ...)
  ── Error (test.orphanMetabolites.R:19:3): orphanProducts function: output value is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test.orphanMetabolites.R:19:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─minval::orphanMetabolites(...)
   5.   └─minval::validateSyntax(reactionList = reactionList)
   6.     ├─base::unlist(...)
   7.     └─base::lapply(...)
   8.       └─minval FUN(X[[i]], ...)
  ── Error (test.orphanProducts.R:3:3): orphanProducts function: output class is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
       ▆
    1. ├─testthat::expect_true(is.vector(orphanProducts("2 A[c] + 3 B[c] => 5 D[c]"))) at test.orphanProducts.R:3:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::is.vector(orphanProducts("2 A[c] + 3 B[c] => 5 D[c]"))
    5. └─minval::orphanProducts("2 A[c] + 3 B[c] => 5 D[c]")
    6.   └─minval::orphanMetabolites(...)
    7.     └─minval::validateSyntax(reactionList = reactionList)
    8.       ├─base::unlist(...)
    9.       └─base::lapply(...)
   10.         └─minval FUN(X[[i]], ...)
  ── Error (test.orphanProducts.R:9:3): orphanProducts function: output value is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test.orphanProducts.R:9:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─minval::orphanProducts("2 A[c] + 3 B[c] => 5 D[c]")
   5.   └─minval::orphanMetabolites(...)
   6.     └─minval::validateSyntax(reactionList = reactionList)
   7.       ├─base::unlist(...)
   8.       └─base::lapply(...)
   9.         └─minval FUN(X[[i]], ...)
  ── Error (test.orphanReactants.R:3:3): orphanReactants function: output class is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
       ▆
    1. ├─testthat::expect_true(is.vector(orphanReactants("2 A[c] + 3 B[c] => 5 D[c]"))) at test.orphanReactants.R:3:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::is.vector(orphanReactants("2 A[c] + 3 B[c] => 5 D[c]"))
    5. └─minval::orphanReactants("2 A[c] + 3 B[c] => 5 D[c]")
    6.   └─minval::orphanMetabolites(...)
    7.     └─minval::validateSyntax(reactionList = reactionList)
    8.       ├─base::unlist(...)
    9.       └─base::lapply(...)
   10.         └─minval FUN(X[[i]], ...)
  ── Error (test.orphanReactants.R:9:3): orphanReactants function: output value is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test.orphanReactants.R:9:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─minval::orphanReactants("2 A[c] + 3 B[c] => 5 D[c]")
   5.   └─minval::orphanMetabolites(...)
   6.     └─minval::validateSyntax(reactionList = reactionList)
   7.       ├─base::unlist(...)
   8.       └─base::lapply(...)
   9.         └─minval FUN(X[[i]], ...)
  ── Error (test.products.R:3:3): products function: output class is wrong ───────
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(is.vector(products("2 A[c] + 3 B[c] => 5 D[c]"))) at test.products.R:3:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::is.vector(products("2 A[c] + 3 B[c] => 5 D[c]"))
   5. └─minval::products("2 A[c] + 3 B[c] => 5 D[c]")
   6.   └─minval::validateSyntax(reactionList)
   7.     ├─base::unlist(...)
   8.     └─base::lapply(...)
   9.       └─minval FUN(X[[i]], ...)
  ── Error (test.products.R:9:3): products function: output value is wrong ───────
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test.products.R:9:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─minval::products("2 A[c] + 3 B[c] => 5 D[c]")
   5.   └─minval::validateSyntax(reactionList)
   6.     ├─base::unlist(...)
   7.     └─base::lapply(...)
   8.       └─minval FUN(X[[i]], ...)
  ── Error (test.reactants.R:3:3): reactants function: output class is wrong ─────
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(is.vector(reactants("2 A[c] + 3 B[c] => 5 D[c]"))) at test.reactants.R:3:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::is.vector(reactants("2 A[c] + 3 B[c] => 5 D[c]"))
   5. └─minval::reactants("2 A[c] + 3 B[c] => 5 D[c]")
   6.   └─minval::validateSyntax(reactionList)
   7.     ├─base::unlist(...)
   8.     └─base::lapply(...)
   9.       └─minval FUN(X[[i]], ...)
  ── Error (test.reactants.R:9:3): reactants function: output value is wrong ─────
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test.reactants.R:9:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─minval::reactants("2 A[c] + 3 B[c] => 5 D[c]")
   5.   └─minval::validateSyntax(reactionList)
   6.     ├─base::unlist(...)
   7.     └─base::lapply(...)
   8.       └─minval FUN(X[[i]], ...)
  ── Error (test.reactionType.R:3:3): reactionType function: output class is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(is.vector(reactionType("2 A[c] + 3 B[c] => 5 D[c]"))) at test.reactionType.R:3:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::is.vector(reactionType("2 A[c] + 3 B[c] => 5 D[c]"))
   5. └─minval:::reactionType("2 A[c] + 3 B[c] => 5 D[c]")
   6.   └─minval::validateSyntax(reactionList = reactionList)
   7.     ├─base::unlist(...)
   8.     └─base::lapply(...)
   9.       └─minval FUN(X[[i]], ...)
  ── Error (test.reactionType.R:17:3): products function: output value is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test.reactionType.R:17:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─minval:::reactionType(reactionList = reactionList)
   5.   └─minval::validateSyntax(reactionList = reactionList)
   6.     ├─base::unlist(...)
   7.     └─base::lapply(...)
   8.       └─minval FUN(X[[i]], ...)
  ── Error (test.stoichiometricMatrix.R:3:3): stoichiometricMatrix output class is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(is.matrix(stoichiometricMatrix("A[c] + B[c] => D[c]"))) at test.stoichiometricMatrix.R:3:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─minval::stoichiometricMatrix("A[c] + B[c] => D[c]")
   5.   └─minval::validateSyntax(reactionList)
   6.     ├─base::unlist(...)
   7.     └─base::lapply(...)
   8.       └─minval FUN(X[[i]], ...)
  ── Error (test.stoichiometricMatrix.R:8:3): stoichiometricMatrix output value is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test.stoichiometricMatrix.R:8:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─minval::stoichiometricMatrix(reactionList = "2 A[c] + 3 B[c] => 5 D[c]")
   5.   └─minval::validateSyntax(reactionList)
   6.     ├─base::unlist(...)
   7.     └─base::lapply(...)
   8.       └─minval FUN(X[[i]], ...)
  ── Error (test.validateSyntax.R:3:3): validateSyntax function: Output class is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test.validateSyntax.R:3:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::is.vector(...)
   5. └─minval::validateSyntax(...)
   6.   ├─base::unlist(...)
   7.   └─base::lapply(...)
   8.     └─minval FUN(X[[i]], ...)
  ── Error (test.validateSyntax.R:10:3): validateSyntax function: Output value is wrong ──
  Error in `is.null(left) || is.na(left)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(validateSyntax(reactionList = "A[c] + B[m] => C[e]")) at test.validateSyntax.R:10:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─minval::validateSyntax(reactionList = "A[c] + B[m] => C[e]")
   5.   ├─base::unlist(...)
   6.   └─base::lapply(...)
   7.     └─minval FUN(X[[i]], ...)
  
  [ FAIL 18 | WARN 0 | SKIP 0 | PASS 12 ]
  Error: Test failures
  Execution halted