Running 'testthat.R' [30s/33s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > if (packageVersion("testthat") >= "0.7.1.99") {
  +   library(testthat)
  +   test_check("lubridate")
  + }
  Loading required package: lubridate
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  [ FAIL 9 | WARN 16 | SKIP 8 | PASS 2737 ]
  
  == Skipped tests ===============================================================
  * Fixm ymd_hms OSz parsing (2)
  * On CRAN (6)
  
  == Failed tests ================================================================
  -- Failure ('test-format_ISO8601.R:10'): Formatting a date works ---------------
  format_ISO8601(as.Date("02-01-2018", format = "%m-%d-%Y"), precision = "y") not equal to "2018".
  1/1 mismatches
  x[1]: "2018-02-01"
  y[1]: "2018"
  precision is respected (y)
  -- Failure ('test-format_ISO8601.R:13'): Formatting a date works ---------------
  format_ISO8601(as.Date("02-01-2018", format = "%m-%d-%Y"), precision = "ym") not equal to "2018-02".
  1/1 mismatches
  x[1]: "2018-02-01"
  y[1]: "2018-02"
  precision is respected (ym)
  -- Failure ('test-format_ISO8601.R:27'): Formatting a datetime works -----------
  format_ISO8601(as.POSIXct("2018-02-01 03:04:05", tz = "EST")) not equal to "2018-02-01T03:04:05".
  1/1 mismatches
  x[1]: "2018-02-01 03:04:05"
  y[1]: "2018-02-01T03:04:05"
  Standard datetime formatting works
  -- Failure ('test-format_ISO8601.R:30'): Formatting a datetime works -----------
  format_ISO8601(...) not equal to "2018-02-01T03:04:05-0500".
  1/1 mismatches
  x[1]: "2018-02-01 03:04:05"
  y[1]: "2018-02-01T03:04:05-0500"
  usetz is respected with datetimes
  -- Failure ('test-format_ISO8601.R:33'): Formatting a datetime works -----------
  format_ISO8601(...) not equal to "2018".
  1/1 mismatches
  x[1]: "2018-02-01 03:04:05"
  y[1]: "2018"
  precision is respected (y)
  -- Failure ('test-format_ISO8601.R:38'): Formatting a datetime works -----------
  format_ISO8601(...) not equal to "2018-0500".
  1/1 mismatches
  x[1]: "2018-02-01 03:04:05"
  y[1]: "2018-0500"
  precision is respected (y) with timezone
  -- Failure ('test-format_ISO8601.R:41'): Formatting a datetime works -----------
  format_ISO8601(...) not equal to "2018-02-01T03:04".
  1/1 mismatches
  x[1]: "2018-02-01 03:04:05"
  y[1]: "2018-02-01T03:04"
  precision is respected (ymdhm)
  -- Failure ('test-format_ISO8601.R:92'): Formatting an Interval works ----------
  format_ISO8601(interval(start = "2018-02-01", end = "2018-03-04")) not equal to "2018-02-01T00:00:00/2018-03-04T00:00:00".
  1/1 mismatches
  x[1]: "2018-02-01/2018-03-04"
  y[1]: "2018-02-01T00:00:00/2018-03-04T00:00:00"
  Standard interval formatting works
  -- Failure ('test-format_ISO8601.R:98'): Formatting an Interval works ----------
  format_ISO8601(...) not equal to "2018-02-01T00:00:00-0500/2018-03-04T00:00:00-0500".
  1/1 mismatches
  x[1]: "2018-02-01/2018-03-04"
  y[1]: "2018-02-01T00:00:00-0500/2018-03-04T00:00:00-0500"
  interval formatting respects timezone
  
  [ FAIL 9 | WARN 16 | SKIP 8 | PASS 2737 ]
  Error: Test failures
  Execution halted