Running 'test-all.R' [19m]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("zoon")
  Loading required package: zoon
  Loading required package: raster
  Loading required package: sp
  [ FAIL 27 | WARN 15 | SKIP 31 | PASS 82 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (31)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (testCombineRasters.R:6:3): Test errors are thrown ────────────────────
  Error in `file(filename, "r", encoding = encoding)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/R/NaiveRandomRaster.R'
  Backtrace:
      ▆
   1. └─base::source(path) at testCombineRasters.R:6:2
   2.   └─base::file(filename, "r", encoding = encoding)
  ── Error (testCombineRasters.R:54:3): Combinations of projections and extents ──
  Error in `file(filename, "r", encoding = encoding)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/R/NaiveRandomRaster.R'
  Backtrace:
      ▆
   1. └─base::source(path) at testCombineRasters.R:54:2
   2.   └─base::file(filename, "r", encoding = encoding)
  ── Error (testCombineRasters.R:94:3): Test in workflows ────────────────────────
  <OPERATION_TIMEDOUT/GenericCurlError/error/condition>
  Error in `function (type, msg, asError = TRUE) 
  {
      if (!is.character(type)) {
          i = match(type, CURLcodeValues)
          typeName = if (is.na(i)) 
              character()
          else names(CURLcodeValues)[i]
      }
      typeName = gsub("^CURLE_", "", typeName)
      fun = (if (asError) 
          stop
      else warning)
      fun(structure(list(message = msg, call = sys.call()), class = c(typeName, 
          "GenericCurlError", "error", "condition")))
  }(28L, "Failed to connect to raw.githubusercontent.com port 443 after 84102 ms: Timed out", 
      TRUE)`: Failed to connect to raw.githubusercontent.com port 443 after 84102 ms: Timed out
  Backtrace:
      ▆
   1. ├─zoon::workflow(...) at testCombineRasters.R:94:2
   2. │ └─zoon:::LapplyGetModule(...)
   3. │   └─base::lapply(...)
   4. │     └─zoon FUN(X[[i]], ...)
   5. │       └─zoon:::GetModule(as.character(x$module), forceReproducible, environment)
   6. │         └─RCurl::getURL(zoonURL, ssl.verifypeer = FALSE)
   7. │           └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   8. └─RCurl `<fn>`(...)
  ── Error (testGetModule.R:23:3): GetModule works ───────────────────────────────
  <SSL_CONNECT_ERROR/GenericCurlError/error/condition>
  Error in `function (type, msg, asError = TRUE) 
  {
      if (!is.character(type)) {
          i = match(type, CURLcodeValues)
          typeName = if (is.na(i)) 
              character()
          else names(CURLcodeValues)[i]
      }
      typeName = gsub("^CURLE_", "", typeName)
      fun = (if (asError) 
          stop
      else warning)
      fun(structure(list(message = msg, call = sys.call()), class = c(typeName, 
          "GenericCurlError", "error", "condition")))
  }(35L, "schannel: failed to receive handshake, SSL/TLS connection failed", 
      TRUE)`: schannel: failed to receive handshake, SSL/TLS connection failed
  Backtrace:
      ▆
   1. ├─testthat::expect_that(...) at testGetModule.R:23:2
   2. │ └─testthat condition(object)
   3. │   └─testthat::expect_equal(x, expected, ..., expected.label = label)
   4. │     └─testthat::quasi_label(enquo(object), label, arg = "object")
   5. │       └─rlang::eval_bare(expr, quo_get_env(quo))
   6. ├─zoon:::GetModule("NoProcess", FALSE)
   7. │ └─RCurl::getURL(zoonURL, ssl.verifypeer = FALSE)
   8. │   └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   9. └─RCurl `<fn>`(...)
  ── Error (testGetModuleList.R:6:3): GetModuleList renew ────────────────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
      ▆
   1. └─zoon::GetModuleList(renew = TRUE) at testGetModuleList.R:6:2
   2.   └─base::readLines(con)
  ── Error (testGetModuleList.R:24:3): GetModuleList no renew ────────────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
      ▆
   1. └─zoon::GetModuleList(renew = FALSE) at testGetModuleList.R:24:2
   2.   └─base::readLines(con)
  ── Error (testGetModuleList.R:42:3): GetModuleList type occurrence ─────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
      ▆
   1. └─zoon::GetModuleList(type = "occurrence") at testGetModuleList.R:42:2
   2.   └─base::readLines(con)
  ── Error (testGetModuleList.R:52:3): GetModuleList type covariate ──────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
      ▆
   1. └─zoon::GetModuleList(type = "covariate") at testGetModuleList.R:52:2
   2.   └─base::readLines(con)
  ── Error (testGetModuleList.R:62:3): GetModuleList type process ────────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
      ▆
   1. └─zoon::GetModuleList(type = "process") at testGetModuleList.R:62:2
   2.   └─base::readLines(con)
  ── Error (testGetModuleList.R:72:3): GetModuleList type model ──────────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
      ▆
   1. └─zoon::GetModuleList(type = "model") at testGetModuleList.R:72:2
   2.   └─base::readLines(con)
  ── Error (testGetModuleList.R:82:3): GetModuleList type ouput ──────────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
      ▆
   1. └─zoon::GetModuleList(type = "output") at testGetModuleList.R:82:2
   2.   └─base::readLines(con)
  ── Error (testLapplyGetModule.R:7:3): LapplyGetModule works correctly ──────────
  <SSL_CONNECT_ERROR/GenericCurlError/error/condition>
  Error in `function (type, msg, asError = TRUE) 
  {
      if (!is.character(type)) {
          i = match(type, CURLcodeValues)
          typeName = if (is.na(i)) 
              character()
          else names(CURLcodeValues)[i]
      }
      typeName = gsub("^CURLE_", "", typeName)
      fun = (if (asError) 
          stop
      else warning)
      fun(structure(list(message = msg, call = sys.call()), class = c(typeName, 
          "GenericCurlError", "error", "condition")))
  }(35L, "schannel: failed to receive handshake, SSL/TLS connection failed", 
      TRUE)`: schannel: failed to receive handshake, SSL/TLS connection failed
  Backtrace:
      ▆
   1. ├─zoon:::LapplyGetModule(list(a, b), forceReproducible = FALSE) at testLapplyGetModule.R:7:2
   2. │ └─base::lapply(...)
   3. │   └─zoon FUN(X[[i]], ...)
   4. │     └─zoon:::GetModule(as.character(x$module), forceReproducible, environment)
   5. │       └─RCurl::getURL(zoonURL, ssl.verifypeer = FALSE)
   6. │         └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   7. └─RCurl `<fn>`(...)
  ── Error (testLoadModule.R:33:3): LoadModule works ─────────────────────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
      ▆
   1. ├─testthat::expect_that(LoadModule("NoProcess"), equals("NoProcess")) at testLoadModule.R:33:2
   2. │ └─testthat condition(object)
   3. │   └─testthat::expect_equal(x, expected, ..., expected.label = label)
   4. │     └─testthat::quasi_label(enquo(object), label, arg = "object")
   5. │       └─rlang::eval_bare(expr, quo_get_env(quo))
   6. └─zoon::LoadModule("NoProcess")
   7.   └─zoon::GetModuleList()
   8.     └─base::readLines(con)
  ── Error (testModuleArguments.R:14:3): Check returns list with all the names ───
  Error in `ModuleArguments("Background")`: URL for module does not exist: https://raw.githubusercontent.com/zoonproject/modules/master/R/Background.R
  Backtrace:
      ▆
   1. └─zoon::ModuleArguments("Background") at testModuleArguments.R:14:2
  ── Failure (testModuleHelp.R:14:3): ModuleHelp errors ──────────────────────────
  `ModuleHelp("NoProce1s")` threw an error with unexpected message.
  Expected match: "Can't find 'NoProce1s'. Did you mean"
  Actual message: "cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(ModuleHelp("NoProce1s"), "Can't find 'NoProce1s'. Did you mean") at testModuleHelp.R:14:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─zoon::ModuleHelp("NoProce1s")
   7.   └─zoon::GetModuleList()
   8.     └─base::readLines(con)
  ── Error (testModuleHelp.R:24:3): Help as text ─────────────────────────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
      ▆
   1. ├─utils::capture.output(...) at testModuleHelp.R:24:2
   2. │ └─base::withVisible(...elt(i))
   3. └─zoon::ModuleHelp("NoProcess")
   4.   └─zoon::GetModuleList()
   5.     └─base::readLines(con)
  ── Error (testModuleHelp.R:39:3): Help as NULL ─────────────────────────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
      ▆
   1. ├─utils::capture.output(...) at testModuleHelp.R:39:2
   2. │ └─base::withVisible(...elt(i))
   3. └─zoon::ModuleHelp("NoProcess")
   4.   └─zoon::GetModuleList()
   5.     └─base::readLines(con)
  ── Error (testModuleHelp.R:56:3): Help as html ─────────────────────────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at testModuleHelp.R:56:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─utils::capture.output(...)
    7. │ └─base::withVisible(...elt(i))
    8. └─zoon::ModuleHelp("NoProcess")
    9.   └─zoon::GetModuleList()
   10.     └─base::readLines(con)
  ── Error (testModuleHelp.R:85:3): Help as pdf ──────────────────────────────────
  Error in `readLines(con)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/man/SpOcc.Rd'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at testModuleHelp.R:85:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─utils::capture.output(...)
    7. │ └─base::withVisible(...elt(i))
    8. └─zoon::ModuleHelp("NoProcess")
    9.   └─zoon::GetModuleList()
   10.     └─base::readLines(con)
  ── Error (testReplicate.R:27:3): Replicate workflow tests ──────────────────────
  <COULDNT_RESOLVE_HOST/GenericCurlError/error/condition>
  Error in `function (type, msg, asError = TRUE) 
  {
      if (!is.character(type)) {
          i = match(type, CURLcodeValues)
          typeName = if (is.na(i)) 
              character()
          else names(CURLcodeValues)[i]
      }
      typeName = gsub("^CURLE_", "", typeName)
      fun = (if (asError) 
          stop
      else warning)
      fun(structure(list(message = msg, call = sys.call()), class = c(typeName, 
          "GenericCurlError", "error", "condition")))
  }(6L, "Could not resolve host: raw.githubusercontent.com", TRUE)`: Could not resolve host: raw.githubusercontent.com
  Backtrace:
      ▆
   1. ├─zoon::workflow(...) at testReplicate.R:27:2
   2. │ └─zoon:::LapplyGetModule(...)
   3. │   └─base::lapply(...)
   4. │     └─zoon FUN(X[[i]], ...)
   5. │       └─zoon:::GetModule(as.character(x$module), forceReproducible, environment)
   6. │         └─RCurl::getURL(zoonURL, ssl.verifypeer = FALSE)
   7. │           └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   8. └─RCurl `<fn>`(...)
  ── Error (???): SortArgs works. ────────────────────────────────────────────────
  <COULDNT_RESOLVE_HOST/GenericCurlError/error/condition>
  Error in `function (type, msg, asError = TRUE) 
  {
      if (!is.character(type)) {
          i = match(type, CURLcodeValues)
          typeName = if (is.na(i)) 
              character()
          else names(CURLcodeValues)[i]
      }
      typeName = gsub("^CURLE_", "", typeName)
      fun = (if (asError) 
          stop
      else warning)
      fun(structure(list(message = msg, call = sys.call()), class = c(typeName, 
          "GenericCurlError", "error", "condition")))
  }(6L, "Could not resolve host: raw.githubusercontent.com", TRUE)`: Could not resolve host: raw.githubusercontent.com
  Backtrace:
      ▆
   1. ├─zoon::workflow(...)
   2. │ └─zoon:::LapplyGetModule(...)
   3. │   └─base::lapply(...)
   4. │     └─zoon FUN(X[[i]], ...)
   5. │       └─zoon:::GetModule(as.character(x$module), forceReproducible, environment)
   6. │         └─RCurl::getURL(zoonURL, ssl.verifypeer = FALSE)
   7. │           └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   8. └─RCurl `<fn>`(...)
  ── Error (testTransformCRS.R:5:3): Expected errors ─────────────────────────────
  Error in `file(filename, "r", encoding = encoding)`: cannot open the connection to 'https://raw.githubusercontent.com/zoonproject/modules/master/R/NaiveRandomPresence.R'
  Backtrace:
      ▆
   1. └─base::source(paste0(basepath, "NaiveRandomPresence.R")) at testTransformCRS.R:5:2
   2.   └─base::file(filename, "r", encoding = encoding)
  ── Error (testTransformCRS.R:55:3): occurrence data is handled as expected when CRSs vary ──
  Error in `NaiveRandomPresence(extent = c(0, 1e+06, 0, 1e+06), seed = 123)`: could not find function "NaiveRandomPresence"
  ── Error (testTransformCRS.R:183:3): Handles NA values and blanks ──────────────
  Error in `NaiveRandomPresence(extent = c(0, 1e+06, 0, 1e+06), seed = 123, 
      projection = "+init=epsg:27700")`: could not find function "NaiveRandomPresence"
  ── Error (testWriteWorkflowMetadata.R:4:3): WriteWorkflowMetadata works. ───────
  <COULDNT_RESOLVE_HOST/GenericCurlError/error/condition>
  Error in `function (type, msg, asError = TRUE) 
  {
      if (!is.character(type)) {
          i = match(type, CURLcodeValues)
          typeName = if (is.na(i)) 
              character()
          else names(CURLcodeValues)[i]
      }
      typeName = gsub("^CURLE_", "", typeName)
      fun = (if (asError) 
          stop
      else warning)
      fun(structure(list(message = msg, call = sys.call()), class = c(typeName, 
          "GenericCurlError", "error", "condition")))
  }(6L, "Could not resolve host: raw.githubusercontent.com", TRUE)`: Could not resolve host: raw.githubusercontent.com
  Backtrace:
      ▆
   1. ├─zoon::workflow(...) at testWriteWorkflowMetadata.R:4:2
   2. │ └─zoon:::LapplyGetModule(...)
   3. │   └─base::lapply(...)
   4. │     └─zoon FUN(X[[i]], ...)
   5. │       └─zoon:::GetModule(as.character(x$module), forceReproducible, environment)
   6. │         └─RCurl::getURL(zoonURL, ssl.verifypeer = FALSE)
   7. │           └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   8. └─RCurl `<fn>`(...)
  ── Error (testZoonCitation.R:13:3): Check returns list with all the names ──────
  Error in `ZoonCitation("LogisticRegression")`: URL for module does not exist: https://raw.githubusercontent.com/zoonproject/modules/master/R/LogisticRegression.R
  Backtrace:
      ▆
   1. └─zoon::ZoonCitation("LogisticRegression") at testZoonCitation.R:13:2
  ── Error (testaccessors.R:10:3): All accessor functions return objects of the right length and type ──
  <COULDNT_RESOLVE_HOST/GenericCurlError/error/condition>
  Error in `function (type, msg, asError = TRUE) 
  {
      if (!is.character(type)) {
          i = match(type, CURLcodeValues)
          typeName = if (is.na(i)) 
              character()
          else names(CURLcodeValues)[i]
      }
      typeName = gsub("^CURLE_", "", typeName)
      fun = (if (asError) 
          stop
      else warning)
      fun(structure(list(message = msg, call = sys.call()), class = c(typeName, 
          "GenericCurlError", "error", "condition")))
  }(6L, "Could not resolve host: raw.githubusercontent.com", TRUE)`: Could not resolve host: raw.githubusercontent.com
  Backtrace:
      ▆
   1. ├─zoon::workflow(...) at testaccessors.R:10:2
   2. │ └─zoon:::LapplyGetModule(...)
   3. │   └─base::lapply(...)
   4. │     └─zoon FUN(X[[i]], ...)
   5. │       └─zoon:::GetModule(as.character(x$module), forceReproducible, environment)
   6. │         └─RCurl::getURL(zoonURL, ssl.verifypeer = FALSE)
   7. │           └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   8. └─RCurl `<fn>`(...)
  
  [ FAIL 27 | WARN 15 | SKIP 31 | PASS 82 ]
  Error: Test failures
  In addition: There were 14 warnings (use warnings() to see them)
  Execution halted