Running ‘testthat.R’ [2s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Run all unit tests
  > 
  > # This is a wrapper around all the tests specified
  > # in the tests/testthat directory. These tests are visible
  > # to users and serve as small examples as well.
  > testthat::test_check("MODISTools")
  Loading required package: MODISTools
  Error in open.connection(con, "rb") : HTTP error 500.
  ── 1. Error: test coordinate transforms (@test_coordinate_conversions.R#6)  ────
  $ operator is invalid for atomic vectors
  Backtrace:
   1. MODISTools::mt_subset(...)
   2. MODISTools::mt_products()
   4. MODISTools:::`_f`()
  
  ── 2. Error: test mt_dates() (@test_download_functions.R#48)  ──────────────────
  7b0a202022737461747573223a203530302c200a20202274797065223a202261626f75743a626c616e6b222c200a20202264657461696c223a20225468652073657276657220656e636f756e746572656420616e20696e7465726e616c206572726f7220616e642077617320756e61626c6520746f20636f6d706c65746520796f757220726571756573742e20204569746865722074686520736572766572206973206f7665726c6f61646564206f7220746865726520697320616e206572726f7220696e20746865206170706c69636174696f6e2e222c200a2020227469746c65223a2022496e7465726e616c20536572766572204572726f72220a7d0a
  Backtrace:
   1. testthat::expect_is(...)
   4. MODISTools::mt_dates(product = "MOD11A2", site_id = mt_sites()$siteid[1])
  
  ── 3. Error: test mt_subset() (@test_download_functions.R#67)  ─────────────────
  second argument must be a list
  Backtrace:
   1. testthat::expect_is(...)
   4. MODISTools::mt_subset(...)
   5. base::do.call("rbind", subset_data$data)
  
  ── 4. Error: test mt_batch_subset() (@test_download_functions.R#205)  ──────────
  2 nodes produced errors; first error: $ operator is invalid for atomic vectors
  Backtrace:
   1. testthat::expect_is(...)
   4. MODISTools::mt_batch_subset(...)
   5. parallel::parRapply(...)
   7. parallel::clusterApply(...)
   8. parallel:::staticClusterApply(cl, fun, length(x), argfun)
   9. parallel:::checkForRemoteErrors(val)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 7 | SKIPPED: 1 | WARNINGS: 2 | FAILED: 4 ]
  1. Error: test coordinate transforms (@test_coordinate_conversions.R#6) 
  2. Error: test mt_dates() (@test_download_functions.R#48) 
  3. Error: test mt_subset() (@test_download_functions.R#67) 
  4. Error: test mt_batch_subset() (@test_download_functions.R#205) 
  
  Error: testthat unit tests failed
  Execution halted