Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(specr)
  
  Attaching package: 'specr'
  
  The following object is masked from 'package:testthat':
  
      setup
  
  > 
  > test_check("specr")
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 16 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-generics.R:9:1'): (code run outside of `test_that()`) ──────────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `dplyr::mutate(., out = pmap(., function(...) {
      l = list(...)
      group_i <- which(sapply(l, is.factor))
      s <- rep(TRUE, nrow(data))
      for (i in group_i) {
          column <- names(l)[i]
          value <- l[[i]]
          if (is.na(value)) 
              next
          s <- s & data[[column]] == value
      }
      do.call(what = l$model_function, args = list(formula = l$formula, 
          data = data[s, ]))
  }))`: ℹ In argument: `out = pmap(...)`.
  Caused by error in `pmap()`:
  ℹ In index: 1.
  Caused by error in `ll()`:
  ! could not find function "ll"
  ── Error ('test-specr.R:12:3'): function returns an object of class 'specr.object' ──
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `dplyr::mutate(., out = pmap(., function(...) {
      l = list(...)
      group_i <- which(sapply(l, is.factor))
      s <- rep(TRUE, nrow(data))
      for (i in group_i) {
          column <- names(l)[i]
          value <- l[[i]]
          if (is.na(value)) 
              next
          s <- s & data[[column]] == value
      }
      do.call(what = l$model_function, args = list(formula = l$formula, 
          data = data[s, ]))
  }))`: ℹ In argument: `out = pmap(...)`.
  Caused by error in `pmap()`:
  ℹ In index: 1.
  Caused by error in `ll()`:
  ! could not find function "ll"
  ── Error ('test-specr.R:29:3'): function returns an object of class 'tibble' when no specr.setup is provided ──
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `dplyr::mutate(., out = pmap(., function(...) {
      l = list(...)
      group_i <- which(sapply(l, is.factor))
      s <- rep(TRUE, nrow(data))
      for (i in group_i) {
          column <- names(l)[i]
          value <- l[[i]]
          if (is.na(value)) 
              next
          s <- s & data[[column]] == value
      }
      do.call(what = l$model_function, args = list(formula = l$formula, 
          data = data[s, ]))
  }))`: ℹ In argument: `out = pmap(...)`.
  Caused by error in `pmap()`:
  ℹ In index: 1.
  Caused by error in `ll()`:
  ! could not find function "ll"
  ── Error ('test-specr.R:38:3'): Specs and results have the same number of rows ──
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `dplyr::mutate(., out = pmap(., function(...) {
      l = list(...)
      group_i <- which(sapply(l, is.factor))
      s <- rep(TRUE, nrow(data))
      for (i in group_i) {
          column <- names(l)[i]
          value <- l[[i]]
          if (is.na(value)) 
              next
          s <- s & data[[column]] == value
      }
      do.call(what = l$model_function, args = list(formula = l$formula, 
          data = data[s, ]))
  }))`: ℹ In argument: `out = pmap(...)`.
  Caused by error in `pmap()`:
  ℹ In index: 1.
  Caused by error in `ll()`:
  ! could not find function "ll"
  ── Error ('test-specr.R:44:3'): Results include confidence intervals ───────────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `dplyr::mutate(., out = pmap(., function(...) {
      l = list(...)
      group_i <- which(sapply(l, is.factor))
      s <- rep(TRUE, nrow(data))
      for (i in group_i) {
          column <- names(l)[i]
          value <- l[[i]]
          if (is.na(value)) 
              next
          s <- s & data[[column]] == value
      }
      do.call(what = l$model_function, args = list(formula = l$formula, 
          data = data[s, ]))
  }))`: ℹ In argument: `out = pmap(...)`.
  Caused by error in `pmap()`:
  ℹ In index: 1.
  Caused by error in `ll()`:
  ! could not find function "ll"
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 16 ]
  Error: Test failures
  Execution halted