Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [14s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(trip)
  > 
  > test_check("trip")
  Error in loadNamespace("rgdal") : there is no package called 'rgdal'
  ── 1. Error: speedfilter and sdafilter works (@test-algos.R#23)  ───────────────
  This method requires the rgdal package,but is unable to load rgdal namespace
  1: expect_silent(sda(tr, smax = 1000, pre = filt1)) at testthat/test-algos.R:23
  2: quasi_capture(enquo(object), NULL, evaluate_promise)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  5: force(code)
  6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  7: withVisible(code)
  8: eval_bare(get_expr(.quo), get_env(.quo))
  9: sda(tr, smax = 1000, pre = filt1)
  10: sda0(xlist[[i]], smax, ang, distlim, pre = xlist[[i]]$prefilter)
  11: trackAngle(x)
  12: trackAngle.trip(x)
  13: sp::spTransform(x, sp::CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +towgs84=0,0,0"))
  14: sp::spTransform(x, sp::CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +towgs84=0,0,0"))
  15: stop(msg)
  
  Error in loadNamespace("rgdal") : there is no package called 'rgdal'
  ── 2. Error: angle calculation works (@test-algos.R#35)  ───────────────────────
  This method requires the rgdal package,but is unable to load rgdal namespace
  1: expect_equal(sum(is.na(trackAngle(tra))), 2) at testthat/test-algos.R:35
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: trackAngle(tra)
  5: trackAngle.trip(tra)
  6: sp::spTransform(x, sp::CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +towgs84=0,0,0"))
  7: sp::spTransform(x, sp::CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +towgs84=0,0,0"))
  8: stop(msg)
  
  Error in loadNamespace("rgdal") : there is no package called 'rgdal'
  ── 3. Error: home distance works (@test-algos.R#61)  ───────────────────────────
  This method requires the rgdal package,but is unable to load rgdal namespace
  1: expect_length(homedist(sp::spTransform(walrus818, "+proj=longlat +datum=WGS84")), 
         length(unique(walrus818$Deployment))) at testthat/test-algos.R:61
  2: quasi_label(enquo(object), arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: homedist(sp::spTransform(walrus818, "+proj=longlat +datum=WGS84"))
  5: trip::getTORnames(x)
  6: sp::spTransform(walrus818, "+proj=longlat +datum=WGS84")
  7: sp::spTransform(walrus818, "+proj=longlat +datum=WGS84")
  8: spTransform(x, sp::CRS(CRSobj), ...)
  9: spTransform(x, sp::CRS(CRSobj), ...)
  10: stop(msg)
  
  Error in loadNamespace("rgdal") : there is no package called 'rgdal'
  ── 4. Error: distance gives comparable values (@test-distances.R#21)  ──────────
  This method requires the rgdal package,but is unable to load rgdal namespace
  1: sp::spTransform(walrus818, "+proj=longlat +datum=WGS84") at testthat/test-distances.R:21
  2: sp::spTransform(walrus818, "+proj=longlat +datum=WGS84")
  3: spTransform(x, sp::CRS(CRSobj), ...)
  4: spTransform(x, sp::CRS(CRSobj), ...)
  5: stop(msg)
  
  
  Longitudes contain values greater than 180, assuming proj.4 +over
  
  
  
  
   Data fully validated: returning object of class  trip 
  Error in loadNamespace("rgdal") : there is no package called 'rgdal'
  ── 5. Error: trip works (@test-trip.R#22)  ─────────────────────────────────────
  This method requires the rgdal package,but is unable to load rgdal namespace
  1: sp::spTransform(xx, "+proj=longlat +datum=WGS84") at testthat/test-trip.R:22
  2: sp::spTransform(xx, "+proj=longlat +datum=WGS84")
  3: spTransform(x, sp::CRS(CRSobj), ...)
  4: spTransform(x, sp::CRS(CRSobj), ...)
  5: stop(msg)
  
  Error in loadNamespace("rgdal") : there is no package called 'rgdal'
  ── 6. Error: write KML works (@test-write.R#6)  ────────────────────────────────
  This method requires the rgdal package,but is unable to load rgdal namespace
  1: expect_that(write_track_kml(walrus818[1:100, ], kml_file = outfile), is_a("character")) %>% 
         expect_length(1L) at testthat/test-write.R:6
  2: eval(lhs, parent, parent)
  3: eval(lhs, parent, parent)
  4: expect_that(write_track_kml(walrus818[1:100, ], kml_file = outfile), is_a("character"))
  5: condition(object)
  6: expect_is(x, class)
  7: quasi_label(enquo(object), label, arg = "object")
  8: eval_bare(get_expr(quo), get_env(quo))
  9: write_track_kml(walrus818[1:100, ], kml_file = outfile)
  10: sp::spTransform(obj, "+init=epsg:4326")
  11: sp::spTransform(obj, "+init=epsg:4326")
  12: spTransform(x, sp::CRS(CRSobj), ...)
  13: spTransform(x, sp::CRS(CRSobj), ...)
  14: stop(msg)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 96 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 6 ]
  1. Error: speedfilter and sdafilter works (@test-algos.R#23) 
  2. Error: angle calculation works (@test-algos.R#35) 
  3. Error: home distance works (@test-algos.R#61) 
  4. Error: distance gives comparable values (@test-distances.R#21) 
  5. Error: trip works (@test-trip.R#22) 
  6. Error: write KML works (@test-write.R#6) 
  
  Error: testthat unit tests failed
  Execution halted