Running ‘testthat.R’ [2s/384s]
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
  ── 1. Error: test coordinate transforms (@test_coordinate_conversions.R#6)  ────
  second argument must be a list
  1: mt_subset(product = "MOD11A2", lat = 40, lon = -110, band = "LST_Day_1km", start = "2004-01-01", 
         end = "2004-03-31", progress = FALSE) at testthat/test_coordinate_conversions.R:6
  2: do.call("rbind", subset_data$data)
  3: stop("second argument must be a list")
  
  ── 2. Error: test mt_subset() (@test_download_functions.R#67)  ─────────────────
  second argument must be a list
  1: expect_is(mt_subset(product = "MOD11A2", lat = 40, lon = -110, band = "LST_Day_1km", 
         start = "2004-01-01", end = "2004-03-31", progress = FALSE), "data.frame") at testthat/test_download_functions.R:67
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: mt_subset(product = "MOD11A2", lat = 40, lon = -110, band = "LST_Day_1km", start = "2004-01-01", 
         end = "2004-03-31", progress = FALSE)
  5: do.call("rbind", subset_data$data)
  6: stop("second argument must be a list")
  
  ── 3. Error: test mt_batch_subset() (@test_download_functions.R#205)  ──────────
  2 nodes produced errors; first error: second argument must be a list
  1: expect_is(mt_batch_subset(df = df, product = "MOD11A2", band = "LST_Day_1km", internal = TRUE, 
         start = "2004-01-01", end = "2004-03-31"), "data.frame") at testthat/test_download_functions.R:205
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: mt_batch_subset(df = df, product = "MOD11A2", band = "LST_Day_1km", internal = TRUE, 
         start = "2004-01-01", end = "2004-03-31")
  5: parallel::parRapply(cl, df, function(x) {
         MODISTools::mt_subset(site_name = as.character(x["site_name"]), product = as.character(x["product"]), 
             band = as.character(x["band"]), lat = as.numeric(x["lat"]), lon = as.numeric(x["lon"]), 
             km_lr = as.numeric(x["km_lr"]), km_ab = as.numeric(x["km_ab"]), start = as.character(x["start"]), 
             end = as.character(x["end"]), out_dir = x["out_dir"], internal = x["internal"], 
             progress = FALSE)
     })
  6: do.call(c, clusterApply(cl = cl, x = splitRows(x, nchunks), fun = apply, MARGIN = 1L, 
         FUN = FUN, ...), quote = TRUE)
  7: clusterApply(cl = cl, x = splitRows(x, nchunks), fun = apply, MARGIN = 1L, FUN = FUN, 
         ...)
  8: staticClusterApply(cl, fun, length(x), argfun)
  9: checkForRemoteErrors(val)
  10: stop(count, " nodes produced errors; first error: ", firstmsg, domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 9 | SKIPPED: 1 | WARNINGS: 4 | FAILED: 3 ]
  1. Error: test coordinate transforms (@test_coordinate_conversions.R#6) 
  2. Error: test mt_subset() (@test_download_functions.R#67) 
  3. Error: test mt_batch_subset() (@test_download_functions.R#205) 
  
  Error: testthat unit tests failed
  Execution halted