Running ‘testthat.R’ [31s/50s]
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
  
  > 
  > test_check("iNZightTools")
  Loading required package: survey
  Loading required package: grid
  Loading required package: Matrix
  Loading required package: survival
  
  Attaching package: 'survey'
  
  The following object is masked from 'package:graphics':
  
      dotchart
  
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  Loading required namespace: styler
  [ FAIL 2 | WARN 6 | SKIP 3 | PASS 362 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test_smart_read.R:27:5', 'test_smart_read.R:253:5'
  • surveyspec cannot be loaded (1): 'test_survey_design.R:4:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_smart_read.R:178:5'): Reading (excel) files converts strings to factor ──
  Error in `FUN(X[[i]], ...)`: Unknown input
  Backtrace:
      ▆
   1. └─iNZightTools::smart_read("cas500.xls", na = "NA") at test_smart_read.R:178:4
   2.   └─iNZightTools (local) fun(...)
   3.     └─iNZightTools:::interpolate(exp, file = file, sheetname = sheet)
   4.       └─base::lapply(list(...), as_call)
   5.         └─iNZightTools (local) FUN(X[[i]], ...)
  ── Error ('test_smart_read.R:184:5'): Read excel returns list of sheets as attribute ──
  Error in `FUN(X[[i]], ...)`: Unknown input
  Backtrace:
      ▆
   1. └─iNZightTools::smart_read("cas500.xls", preview = TRUE, na = "NA") at test_smart_read.R:184:4
   2.   └─iNZightTools (local) fun(...)
   3.     └─iNZightTools:::interpolate(exp, file = file, sheetname = sheet)
   4.       └─base::lapply(list(...), as_call)
   5.         └─iNZightTools (local) FUN(X[[i]], ...)
  
  [ FAIL 2 | WARN 6 | SKIP 3 | PASS 362 ]
  Error: Test failures
  Execution halted