Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(geneset)
  > 
  > test_check("geneset")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-getGO.R:4:3'): getGO 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: genekitr-china.oss-accelerate.aliyuncs.com", 
      TRUE)`: Could not resolve host: genekitr-china.oss-accelerate.aliyuncs.com
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-getGO.R:4:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─... %>% .[[4]]
    5. ├─geneset::getGO(org = "human", ont = "mf", data_dir = tempdir())
    6. │ └─geneset:::check_web_size(url)
    7. │   ├─... %>% as.numeric()
    8. │   └─RCurl::getURL(url, nobody = 1L, header = 1L)
    9. │     └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   10. ├─stringi::stri_remove_empty_na(.)
   11. │ └─stringi::stri_remove_empty(x, TRUE)
   12. │   └─stringi::stri_enc_toutf8(x)
   13. ├─stringr::str_remove_all(., "Content-Length: ")
   14. │ └─stringr::str_replace_all(string, pattern, "")
   15. │   └─stringr:::check_lengths(string, pattern, replacement)
   16. │     └─vctrs::vec_size_common(...)
   17. ├─stringr::str_extract(., "Content-Length.*[0-9]")
   18. │ └─stringr:::check_lengths(string, pattern)
   19. │   └─vctrs::vec_size_common(...)
   20. ├─base::unlist(.)
   21. ├─base::strsplit(., "\r\n")
   22. └─RCurl (local) `<fn>`(...)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted