Running ‘testthat.R’ [23s/31s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(iNZightTools)
  
  Attaching package: 'iNZightTools'
  
  The following object is masked from 'package:stats':
  
      filter
  
  The following object is masked from 'package:base':
  
      %||%
  
  > 
  > test_check("iNZightTools")
  Loading required package: grid
  Loading required package: Matrix
  Loading required package: survival
  
  Attaching package: 'survey'
  
  The following object is masked from 'package:graphics':
  
      dotchart
  
  Saving _problems/test_helpers-27.R
  Saving _problems/test_inzdf-17.R
  Saving _problems/test_inzdf-69.R
  Saving _problems/test_linked-71.R
  Saving _problems/test_linked-95.R
  Saving _problems/test_linked-120.R
  Saving _problems/test_smart_read-13.R
  
  Attaching package: 'magrittr'
  
  The following object is masked from 'package:purrr':
  
      set_names
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  [ FAIL 8 | WARN 112 | SKIP 4 | PASS 348 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test_smart_read.R:29:5', 'test_smart_read.R:259:5'
  • {haven} is not installed (1): 'test_smart_read.R:39:5'
  • {surveyspec} is not installed (1): 'test_survey_design.R:6:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_helpers.R:27:5'): Vartype is correct ───────────────────────────
  Error in `inzdf.SQLiteConnection(con, "iris", keep_con = TRUE)`: dbplyr is required to use inzdf with databases
  Backtrace:
      ▆
   1. ├─iNZightTools::inzdf(con, "iris", keep_con = TRUE) at test_helpers.R:27:5
   2. └─iNZightTools:::inzdf.SQLiteConnection(con, "iris", keep_con = TRUE)
  ── Error ('test_inzdf.R:17:5'): SQLite database supported ──────────────────────
  Error in `inzdf.SQLiteConnection(con, "iris", keep_con = TRUE)`: dbplyr is required to use inzdf with databases
  Backtrace:
      ▆
   1. ├─iNZightTools::inzdf(con, "iris", keep_con = TRUE) at test_inzdf.R:17:5
   2. └─iNZightTools:::inzdf.SQLiteConnection(con, "iris", keep_con = TRUE)
  ── Error ('test_inzdf.R:54:5'): Linked data in database supported ──────────────
  Error in `inzdf.SQLiteConnection(con, "iris_linked", schema = list(iris_data = list(links_to = list(iris_species = "species_id")), iris_species = list(links_to = list(iris_extra = c(type_id = "id")))), keep_con = TRUE)`: dbplyr is required to use inzdf with databases
  Backtrace:
      ▆
   1. ├─iNZightTools::inzdf(...) at test_inzdf.R:54:5
   2. └─iNZightTools:::inzdf.SQLiteConnection(...)
  ── Error ('test_linked.R:65:5'): Linked data loading ───────────────────────────
  Error in `inzdf.SQLiteConnection(con, name = name, schema = x$schema, var_attrs, dictionary = x$dictionary, keep_con = keep_con)`: dbplyr is required to use inzdf with databases
  Backtrace:
      ▆
   1. └─iNZightTools::load_linked(...) at test_linked.R:65:5
   2.   ├─iNZightTools::inzdf(...)
   3.   └─iNZightTools:::inzdf.SQLiteConnection(...)
  ── Error ('test_linked.R:95:5'): Link spec file ────────────────────────────────
  Error in `inzdf.SQLiteConnection(con, name = name, schema = x$schema, var_attrs, dictionary = x$dictionary, keep_con = keep_con)`: dbplyr is required to use inzdf with databases
  Backtrace:
      ▆
   1. └─iNZightTools::load_linked(dl, con = con, keep_con = TRUE) at test_linked.R:95:5
   2.   ├─iNZightTools::inzdf(...)
   3.   └─iNZightTools:::inzdf.SQLiteConnection(...)
  ── Error ('test_linked.R:120:5'): Dicionaries load ─────────────────────────────
  Error in `inzdf.SQLiteConnection(con, name = name, schema = x$schema, var_attrs, dictionary = x$dictionary, keep_con = keep_con)`: dbplyr is required to use inzdf with databases
  Backtrace:
      ▆
   1. └─iNZightTools::load_linked(tc, con = con, keep_con = TRUE) at test_linked.R:120:5
   2.   ├─iNZightTools::inzdf(...)
   3.   └─iNZightTools:::inzdf.SQLiteConnection(...)
  ── Error ('test_smart_read.R:13:5'): files parsed correctly ────────────────────
  Error in `.check_haven()`: Please install suggested package: 'haven
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(smart_read("appbset1.sav"), "data.frame") at test_smart_read.R:13:5
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─iNZightTools::smart_read("appbset1.sav")
   5.   └─iNZightTools (local) fun(...)
   6.     └─iNZightTools:::.check_haven()
  ── Error ('test_smart_read.R:118:5'): SAS Import num to cat works ──────────────
  Error in `.check_haven()`: Please install suggested package: 'haven
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test_smart_read.R:118:5
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─iNZightTools::smart_read(...)
   10.   └─iNZightTools (local) fun(...)
   11.     └─iNZightTools:::.check_haven()
  
  [ FAIL 8 | WARN 112 | SKIP 4 | PASS 348 ]
  Error:
  ! Test failures.
  Execution halted