Running ‘testthat.R’ [2s/53s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(wtss)
  wtss - R interface to Web Time Series Service.
  Loaded wtss v2.0.1.
          See ?wtss for help, citation("wtss") for use in publication.
          See demo(package = "wtss") for examples.
  > 
  > test_check("wtss")
  ── 1. Failure: Connection to a WTSS service (@test_wtss.R#5)  ──────────────────
  wtss1$url == URL isn't true.
  
  ── 2. Failure: Connection to a WTSS service (@test_wtss.R#7)  ──────────────────
  "MOD13Q1" %in% coverages isn't true.
  
  ── 3. Error: List coverages (@test_wtss.R#20)  ─────────────────────────────────
  invalid 'pattern' argument
  Backtrace:
   1. testthat::expect_true(as.logical(grep(wtss2$url, output[2])))
   4. base::grep(wtss2$url, output[2])
  
  ── 4. Error: Describe coverage  ────────────────────────────────────────────────
  WTSS - select only one coverage to describe
  Backtrace:
   1. wtss::describe_coverage(wtss3, wtss3$coverages[1])
   2. assertthat::assert_that(length(name) == 1, msg = "WTSS - select only one coverage to describe")
  
  ── 5. Error: Describe coverage  ────────────────────────────────────────────────
  WTSS - select only one coverage to describe
  Backtrace:
   1. wtss::describe_coverage(wtss4, wtss4$coverages[1])
   2. assertthat::assert_that(length(name) == 1, msg = "WTSS - select only one coverage to describe")
  
  ── 6. Error: Time Series (@test_wtss.R#49)  ────────────────────────────────────
  object 'response' not found
  Backtrace:
   1. wtss::time_series(...)
   2. wtss::WTSS(URL)
   3. wtss:::.wtss_list_coverages(wtss.obj)
   7. wtss:::.wtss_send_request(request)
  
  ── 7. Error: Time Series 2 (@test_wtss.R#58)  ──────────────────────────────────
  object 'response' not found
  Backtrace:
   1. wtss::time_series(wtss6, "MOD13Q1", longitude = -45, latitude = -12)
   2. wtss::WTSS(URL)
   3. wtss:::.wtss_list_coverages(wtss.obj)
   7. wtss:::.wtss_send_request(request)
  
  ── 8. Error: Time Series - conversion to ts and zoo (@test_wtss.R#90)  ─────────
  object 'response' not found
  Backtrace:
   1. wtss::time_series(...)
   2. wtss::WTSS(URL)
   3. wtss:::.wtss_list_coverages(wtss.obj)
   7. wtss:::.wtss_send_request(request)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 8 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 8 ]
  1. Failure: Connection to a WTSS service (@test_wtss.R#5) 
  2. Failure: Connection to a WTSS service (@test_wtss.R#7) 
  3. Error: List coverages (@test_wtss.R#20) 
  4. Error: Describe coverage 
  5. Error: Describe coverage 
  6. Error: Time Series (@test_wtss.R#49) 
  7. Error: Time Series 2 (@test_wtss.R#58) 
  8. Error: Time Series - conversion to ts and zoo (@test_wtss.R#90) 
  
  Error: testthat unit tests failed
  Execution halted