Running ‘run_tests.r’ [4s/30s]
Running the tests in ‘tests/run_tests.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 do.call("rbind", subset_data$data) : 
    second argument must be a list
  Error in file(file, "rt") : cannot open the connection
  ── 1. Failure: test read write functions (@test_ancillary_functions.r#23)  ─────
  `check` isn't true.
  
  Error in mt_bands(product = "MOD11A6") : 
    please specify a product, or check your product name...
  Error in mt_dates(product = "MOD11A6", lat = 40, lon = -110) : 
    please specify a product, or check your product name...
  Error in mt_dates(product = "MOD11A6", lat = NULL, lon = -110) : 
    please specify a product, or check your product name...
  Error in do.call("rbind", subset_data$data) : 
    second argument must be a list
  Error in do.call("rbind", subset_data$data) : 
    second argument must be a list
  ── 2. Failure: test mt_subset() (@test_main_functions.r#97)  ───────────────────
  `check` isn't true.
  
  Error in checkForRemoteErrors(val) : 
    2 nodes produced errors; first error: second argument must be a list
  Error in checkForRemoteErrors(val) : 
    2 nodes produced errors; first error: second argument must be a list
  Error in mt_batch_subset(df = "fail.csv", product = "MOD11A2", band = "LST_Day_1km",  : 
    specified batch file does not exist
  ── 3. Failure: test mt_batch_subset() (@test_main_functions.r#147)  ────────────
  `check` isn't true.
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 12 SKIPPED: 0 FAILED: 3
  1. Failure: test read write functions (@test_ancillary_functions.r#23) 
  2. Failure: test mt_subset() (@test_main_functions.r#97) 
  3. Failure: test mt_batch_subset() (@test_main_functions.r#147) 
  
  Error: testthat unit tests failed
  Execution halted