Running 'testthat.R' [11s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(lifelogr)
  > 
  > test_check("lifelogr")
  -- 1. Error: plot_i_hr_datetime produces a ggplot object (@test_viz_plot.R#73)  
  Invalid timezone of input vector: ""
  1: expect_is(plot_i_hr_datetime(EX), "ggplot") at testthat/test_viz_plot.R:73
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: plot_i_hr_datetime(EX)
  5: ggplot2::annotate("rect", xmin = rep(as.POSIXct(person$start_date), 3), xmax = rep(as.POSIXct(person$end_date) + 
         lubridate::days(1), 3), ymin = c(hr_zones$fat_burn[1], hr_zones$fat_burn[2], 
         hr_zones$cardio[2]), ymax = c(hr_zones$fat_burn[2], hr_zones$cardio[2], hr_zones$peak[2]), 
         fill = c("orange", "green", "blue"), alpha = 0.25)
  6: compact(list(x = x, xmin = xmin, xmax = xmax, xend = xend, y = y, ymin = ymin, ymax = ymax, 
         yend = yend))
  7: vapply(x, is.null, logical(1))
  8: as.POSIXct(person$end_date) + lubridate::days(1)
  9: as.POSIXct(person$end_date) + lubridate::days(1)
  10: add_period_to_date(e2, e1)
  11: update(lt, days = mday(lt) + per@day, hours = hour(lt) + per@hour, minutes = minute(lt) + 
         per@minute, seconds = second(lt) + per@.Data)
  12: update.POSIXt(lt, days = mday(lt) + per@day, hours = hour(lt) + per@hour, minutes = minute(lt) + 
         per@minute, seconds = second(lt) + per@.Data)
  13: do.call(update_date_time, c(list(object, roll = roll, week_start = week_start), list(...)))
  14: (function (object, years = integer(), months = integer(), days = integer(), mdays = integer(), 
         ydays = integer(), wdays = integer(), hours = integer(), minutes = integer(), 
         seconds = double(), tzs = NULL, roll = FALSE, week_start = 7) 
     {
         if (!length(object)) 
             return(object)
         if (length(days) > 0) 
             mdays = days
         updates <- list(year = years, month = months, yday = ydays, mday = mdays, wday = wdays, 
             hour = hours, minute = minutes, second = seconds)
         maxlen <- max(unlist(lapply(updates, length)))
         if (maxlen > 1) {
             for (nm in names(updates)) {
                 len <- length(updates[[nm]])
                 if (len != maxlen && len > 1) 
                     updates[[nm]] <- rep_len(updates[[nm]], maxlen)
             }
         }
         if (is.null(tzs)) 
             tzs <- tz(object)
         updates[["dt"]] <- as.POSIXct(object)
         updates[["roll"]] <- roll
         updates[["tz"]] <- tzs
         updates[["week_start"]] <- week_start
         reclass_date(do.call(C_update_dt, updates), object)
     })(structure(list(sec = 0, min = 0L, hour = 1L, mday = 17L, mon = 1, year = 117L, 
         wday = 5L, yday = 47L, isdst = 0L, zone = "CET", gmtoff = 3600L), .Names = c("sec", 
     "min", "hour", "mday", "mon", "year", "wday", "yday", "isdst", "zone", "gmtoff"), class = c("POSIXlt", 
     "POSIXt"), tzone = c("", "CET", "CEST")), roll = FALSE, week_start = 7, days = 18, 
         hours = 1, minutes = 0, seconds = 0)
  15: reclass_date(do.call(C_update_dt, updates), object)
  16: reclass_date.POSIXlt(do.call(C_update_dt, updates), object)
  17: as.POSIXlt(new)
  18: do.call(C_update_dt, updates)
  19: (function (dt, year, month, yday, mday, wday, hour, minute, second, tz = NULL, roll = FALSE, 
         week_start = 7L) 
     {
         .Call(`_lubridate_C_update_dt`, dt, year, month, yday, mday, wday, hour, minute, 
             second, tz, roll, week_start)
     })(year = integer(0), month = integer(0), yday = integer(0), mday = 18, wday = integer(0), 
         hour = 1, minute = 0, second = 0, dt = structure(1487289600, class = c("POSIXct", 
         "POSIXt"), tzone = ""), roll = FALSE, tz = "", week_start = 7)
  
  == testthat results  ===========================================================
  OK: 62 SKIPPED: 0 FAILED: 1
  1. Error: plot_i_hr_datetime produces a ggplot object (@test_viz_plot.R#73) 
  
  Error: testthat unit tests failed
  Execution halted