Running ‘testthat.R’ [29s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(easyr)
  > 
  > test_check("easyr")
  Loading required package: magrittr
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  easyr::ecopy does not work on unix. 
  easyr::ecopy does not work on unix. 
  easyr::ecopy does not work on unix. 
  Reading as XML/HTML 
  Reading as XML/HTML 
  Reading as XML/HTML 
  Reading as XML/HTML 
  Reading as XML/HTML 
  Reading as XML/HTML 
  No matches found.
  No matches found.
  No matches found.
  No matches found.
  easyr::tonum: NAs were created. Returning the vector unchanged. 
  Problematic values include: [ 5'10 ] 
   [ FAIL 18 | WARN 0 | SKIP 1 | PASS 252 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_atype.R:14'): works as expected ────────────────────────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [date] : Error in `>.POSIXt`(test.conversion, max.acceptable): object 'check_tzones' not found
  
  Backtrace:
      ▆
   1. └─easyr::atype(t) at test_atype.R:14:2
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       ├─base (local) tryCatchOne(...)
   5.       │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   6.       └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   7.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.           └─value[[3L]](cond)
  ── Error ('test_dict.R:3'): works as expected ──────────────────────────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [Sepal.Length] : Error in `>.POSIXt`(test.conversion, max.acceptable): object 'check_tzones' not found
  
  Backtrace:
       ▆
    1. ├─utils::capture.output(dict(iris, ecopy = TRUE)) at test_dict.R:3:2
    2. │ └─base::withVisible(...elt(i))
    3. └─easyr::dict(iris, ecopy = TRUE)
    4.   └─easyr::atype(x)
    5.     └─base::tryCatch(...)
    6.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    7.         ├─base (local) tryCatchOne(...)
    8.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    9.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   10.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.             └─value[[3L]](cond)
  ── Failure ('test_fldict.R:36'): works as expected ─────────────────────────────
  `count1` (`actual`) not equal to `count2` (`expected`).
  
    `actual`: 12
  `expected`: 11
  ── Error ('test_fmat.R:78'): works as expected ─────────────────────────────────
  Error in ``<.POSIXt`(test.conversion.char, min.acceptable)`: object 'check_tzones' not found
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(fmat("01/01/2018"), "1/01/2018") at test_fmat.R:78:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─easyr::fmat("01/01/2018")
    5.   └─easyr::likedate(x)
    6.     └─easyr::todate(...)
    7.       └─easyr:::totype(...)
    8.         └─easyr (local) type.conversion(uvals$midval)
    9.           ├─base::`[<-`(`*tmp*`, test.conversion.char < min.acceptable, value = `<lgl>`)
   10.           ├─base::`[<-.POSIXct`(...)
   11.           │ └─base::.POSIXct(NextMethod(.Generic), attr(x, "tzone"), oldClass(x))
   12.           ├─base::NextMethod(.Generic)
   13.           └─lubridate (local) `<.POSIXt`(test.conversion.char, min.acceptable)
  ── Error ('test_likedate.R:3'): works as expected ──────────────────────────────
  Error in ``>.POSIXt`(test.conversion, max.acceptable)`: object 'check_tzones' not found
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_likedate.R:3:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─easyr::likedate(...)
    5.   └─easyr::todate(...)
    6.     └─easyr:::totype(...)
    7.       └─easyr (local) type.conversion(uvals$midval)
    8.         └─easyr::xldate(...)
    9.           └─easyr:::totype(...)
   10.             └─easyr (local) type.conversion(uvals$midval)
   11.               ├─base::`[<-`(...)
   12.               ├─base::`[<-.POSIXct`(...)
   13.               │ └─base::.POSIXct(NextMethod(.Generic), attr(x, "tzone"), oldClass(x))
   14.               ├─base::NextMethod(.Generic)
   15.               ├─base::which(test.conversion > max.acceptable)
   16.               └─lubridate (local) `>.POSIXt`(test.conversion, max.acceptable)
  ── Error ('test_read.any.R:4'): NAs are replaced properly ──────────────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [isna] : Error in `>.POSIXt`(test.conversion, max.acceptable): object 'check_tzones' not found
  
  Backtrace:
      ▆
   1. └─easyr::read.any(test_file("na-check.csv"), drop.na.cols = FALSE) at test_read.any.R:4:2
   2.   └─easyr::atype(...)
   3.     └─base::tryCatch(...)
   4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   5.         ├─base (local) tryCatchOne(...)
   6.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   7.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   8.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.             └─value[[3L]](cond)
  ── Error ('test_read.any.R:11'): Null columns are dropped ──────────────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [Period Start] : Error in `>.POSIXt`(test.conversion, max.acceptable): object 'check_tzones' not found
  
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_read.any.R:11:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::ncol(read.any(test_file("null-columns.xlsx"), first_column_name = "Period End"))
    5. └─easyr::read.any(test_file("null-columns.xlsx"), first_column_name = "Period End")
    6.   └─easyr::atype(...)
    7.     └─base::tryCatch(...)
    8.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.         ├─base (local) tryCatchOne(...)
   10.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   11.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   12.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.             └─value[[3L]](cond)
  ── Error ('test_read.any.R:20'): Mixed excel-number and string dates convert correclty ──
  Error in `value[[3L]](cond)`: easyr::atype error at column [Repair.Date] : Error in `>.POSIXt`(test.conversion, max.acceptable): object 'check_tzones' not found
  
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_read.any.R:20:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─easyr::read.any(test_file("mix-dateformat-xl-char.rds"))
    5.   └─easyr::atype(...)
    6.     └─base::tryCatch(...)
    7.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    8.         ├─base (local) tryCatchOne(...)
    9.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   10.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   11.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.             └─value[[3L]](cond)
  ── Error ('test_read.any.R:29'): require_columns works properly ────────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [Repair.Date] : Error in `>.POSIXt`(test.conversion, max.acceptable): object 'check_tzones' not found
  
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_read.any.R:29:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─easyr::read.any(test_file("mix-dateformat-xl-char.rds"), require_columns = "this is not a column")
    8.   └─easyr::atype(...)
    9.     └─base::tryCatch(...)
   10.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   11.         ├─base (local) tryCatchOne(...)
   12.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   13.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   14.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15.             └─value[[3L]](cond)
  ── Error ('test_read.any.R:47'): Headers found using field_name_map, read column to row names ──
  Error in `value[[3L]](cond)`: easyr::atype error at column [id] : Error in `<.POSIXt`(test.conversion.char, min.acceptable): object 'check_tzones' not found
  
  Backtrace:
      ▆
   1. └─easyr::read.any(...) at test_read.any.R:47:2
   2.   └─easyr::atype(...)
   3.     └─base::tryCatch(...)
   4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   5.         ├─base (local) tryCatchOne(...)
   6.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   7.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   8.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.             └─value[[3L]](cond)
  ── Error ('test_read.any.R:63'): Single-column data reads properly ─────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [data] : Error in `<.POSIXt`(test.conversion.char, min.acceptable): object 'check_tzones' not found
  
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_read.any.R:63:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::colnames(read.any(test_file("one-column-test.csv")))
    5. │ └─base::is.data.frame(x)
    6. └─easyr::read.any(test_file("one-column-test.csv"))
    7.   └─easyr::atype(...)
    8.     └─base::tryCatch(...)
    9.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.         ├─base (local) tryCatchOne(...)
   11.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   13.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14.             └─value[[3L]](cond)
  ── Error ('test_read.any.R:72'): stringsAsFactors works properly ───────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [Claim Number] : Error in `<.POSIXt`(test.conversion.char, min.acceptable): object 'check_tzones' not found
  
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_read.any.R:72:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─easyr::read.any(...)
    5.   └─easyr::atype(...)
    6.     └─base::tryCatch(...)
    7.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    8.         ├─base (local) tryCatchOne(...)
    9.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   10.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   11.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.             └─value[[3L]](cond)
  ── Error ('test_read.any.R:82'): read HTML saved as XLS ────────────────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [V1] : Error in `<.POSIXt`(test.conversion.char, min.acceptable): object 'check_tzones' not found
  
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_read.any.R:82:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─easyr::read.any(...)
    5.   └─easyr::atype(...)
    6.     └─base::tryCatch(...)
    7.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    8.         ├─base (local) tryCatchOne(...)
    9.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   10.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   11.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.             └─value[[3L]](cond)
  ── Error ('test_read.any.R:91'): data types are correctly identified and converted ──
  Error in `value[[3L]](cond)`: easyr::atype error at column [Claim Number] : Error in `<.POSIXt`(test.conversion.char, min.acceptable): object 'check_tzones' not found
  
  Backtrace:
      ▆
   1. └─easyr::read.any(test_file("sim-data.csv"), first_column_name = "Claim Number") at test_read.any.R:91:2
   2.   └─easyr::atype(...)
   3.     └─base::tryCatch(...)
   4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   5.         ├─base (local) tryCatchOne(...)
   6.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   7.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   8.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.             └─value[[3L]](cond)
  ── Error ('test_read.any.R:109'): times read in properly ───────────────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [date] : Error in `<.POSIXt`(test.conversion.char, min.acceptable): object 'check_tzones' not found
  
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_read.any.R:109:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::sapply(...)
    5. │ └─base::lapply(X = X, FUN = FUN, ...)
    6. └─easyr::read.any(test_file("date-time.csv"), allow_times = TRUE)
    7.   └─easyr::atype(...)
    8.     └─base::tryCatch(...)
    9.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.         ├─base (local) tryCatchOne(...)
   11.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   13.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14.             └─value[[3L]](cond)
  ── Error ('test_read.any.R:138'): read xlsb ────────────────────────────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [14.7] : Error in `>.POSIXt`(test.conversion, max.acceptable): object 'check_tzones' not found
  
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_read.any.R:138:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::nrow(read.any(test_file("sample.xlsb")))
    5. └─easyr::read.any(test_file("sample.xlsb"))
    6.   └─easyr::atype(...)
    7.     └─base::tryCatch(...)
    8.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.         ├─base (local) tryCatchOne(...)
   10.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   11.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   12.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.             └─value[[3L]](cond)
  ── Error ('test_tcol.R:4'): works as expected ──────────────────────────────────
  Error in `value[[3L]](cond)`: easyr::atype error at column [col] : Error in `<.POSIXt`(test.conversion.char, min.acceptable): object 'check_tzones' not found
  
  Backtrace:
      ▆
   1. └─easyr::tcol(x, "Species") at test_tcol.R:4:2
   2.   └─easyr::atype(x)
   3.     └─base::tryCatch(...)
   4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   5.         ├─base (local) tryCatchOne(...)
   6.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   7.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   8.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.             └─value[[3L]](cond)
  ── Error ('test_todate.R:3'): todate works as expected ─────────────────────────
  Error in ``<.POSIXt`(test.conversion.char, min.acceptable)`: object 'check_tzones' not found
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_todate.R:3:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─easyr::todate(...)
    5.   └─easyr:::totype(...)
    6.     └─easyr (local) type.conversion(uvals$midval)
    7.       ├─base::`[<-`(`*tmp*`, test.conversion.char < min.acceptable, value = `<lgl>`)
    8.       ├─base::`[<-.POSIXct`(...)
    9.       │ └─base::.POSIXct(NextMethod(.Generic), attr(x, "tzone"), oldClass(x))
   10.       ├─base::NextMethod(.Generic)
   11.       └─lubridate (local) `<.POSIXt`(test.conversion.char, min.acceptable)
  
  [ FAIL 18 | WARN 0 | SKIP 1 | PASS 252 ]
  Error: Test failures
  Execution halted