Running ‘testthat.R’ [51s/65s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rtide)
  rtide is not suitable for navigation
  > 
  > test_check("rtide")
  1. Error: tide_height_data checks (@test-tide-height-data.R#33) ----------------
  Invalid timezone of input vector: "PST8PDT"
  1: lubridate::`year<-`(`*tmp*`, value = 1699) at testthat/test-tide-height-data.R:33
  2: lubridate::`year<-`(`*tmp*`, value = 1699)
  3: x + years(value - year(x))
  4: x + years(value - year(x))
  5: add_period_to_date(e2, e1)
  6: update(lt, days = mday(lt) + per@day, hours = hour(lt) + per@hour, minutes = minute(lt) + 
         per@minute, seconds = second(lt) + per@.Data)
  7: update.POSIXt(lt, days = mday(lt) + per@day, hours = hour(lt) + per@hour, minutes = minute(lt) + 
         per@minute, seconds = second(lt) + per@.Data)
  8: do.call(update_date_time, c(list(object, roll = roll, week_start = week_start), list(...)))
  9: (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)
             }
         }
         updates[["dt"]] <- as.POSIXct(object)
         updates[["roll"]] <- roll
         updates[["tz"]] <- if (is.null(tzs)) 
             tz(object)
         else tzs
         updates[["week_start"]] <- week_start
         reclass_date(do.call(C_update_dt, updates), object)
     })(structure(list(sec = 0, min = 0L, hour = 10L, mday = 1L, mon = -3792, year = 115L, 
         wday = 4L, yday = 0L, isdst = 0L, zone = "PST", gmtoff = -28800L), .Names = c("sec", 
     "min", "hour", "mday", "mon", "year", "wday", "yday", "isdst", "zone", "gmtoff"), class = c("POSIXlt", 
     "POSIXt"), tzone = c("PST8PDT", "PST", "PDT")), roll = FALSE, week_start = 7, days = 1, 
         hours = 10, minutes = 0, seconds = 0)
  10: reclass_date(do.call(C_update_dt, updates), object)
  11: reclass_date.POSIXlt(do.call(C_update_dt, updates), object)
  12: as.POSIXlt(new)
  13: do.call(C_update_dt, updates)
  14: (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 = 1, wday = integer(0), 
         hour = 10, minute = 0, second = 0, dt = structure(-8551807200, class = c("POSIXct", 
         "POSIXt"), tzone = "PST8PDT"), roll = FALSE, tz = "PST8PDT", week_start = 7)
  
  testthat results ================================================================
  OK: 34 SKIPPED: 0 FAILED: 1
  1. Error: tide_height_data checks (@test-tide-height-data.R#33) 
  
  Error: testthat unit tests failed
  Execution halted