Running ‘testthat.R’ [5s/67s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pmparser)
  > 
  > test_check('pmparser')
  [ FAIL 4 | WARN 0 | SKIP 4 | PASS 67 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test_get_citation.R:4:3', 'test_get_citation.R:13:3',
    'test_get_pubmed_files.R:7:3', 'test_get_pubmed_files.R:20:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_modify_pubmed_db_dup.R:51:3'): modifyPubmedDb create is unique ──
  <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: ftp.ncbi.nlm.nih.gov", TRUE)`: Could not resolve host: ftp.ncbi.nlm.nih.gov
  Backtrace:
      ▆
   1. ├─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_dup.R:51:3
   2. │ └─pmparser:::getReadme(con = con)
   3. │   └─RCurl::getURL(glue("{remoteDir}/{filename}"))
   4. │     └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   5. └─RCurl (local) `<fn>`(6L, "Could not resolve host: ftp.ncbi.nlm.nih.gov", TRUE)
  ── Error ('test_modify_pubmed_db_dup.R:67:3'): modifyPubmedDb update is unique ──
  Error in `{
      dNow = getRemoteFilenames(glue("{remoteDir}/{subDir}/"), 
          pattern)
      dNow[, `:=`(sub_dir, subDir)]
  }`: task 1 failed - "Could not resolve host: ftp.ncbi.nlm.nih.gov"
  Backtrace:
      ▆
   1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_dup.R:67:3
   2.   └─pmparser:::getPubmedFileInfo(localDir, subDirs = subDir, con = conTmp)
   3.     └─foreach(subDir = subDirs, .combine = rbind) %do% ...
   4.       └─e$fun(obj, substitute(ex), parent.frame(), e$data)
  ── Error ('test_modify_pubmed_db_std.R:22:3'): modifyPubmedDb create matches standard ──
  <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: ftp.ncbi.nlm.nih.gov", TRUE)`: Could not resolve host: ftp.ncbi.nlm.nih.gov
  Backtrace:
      ▆
   1. ├─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_std.R:22:3
   2. │ └─pmparser:::getReadme(con = con)
   3. │   └─RCurl::getURL(glue("{remoteDir}/{filename}"))
   4. │     └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   5. └─RCurl (local) `<fn>`(6L, "Could not resolve host: ftp.ncbi.nlm.nih.gov", TRUE)
  ── Error ('test_modify_pubmed_db_std.R:42:3'): modifyPubmedDb update matches standard ──
  Error in `{
      dNow = getRemoteFilenames(glue("{remoteDir}/{subDir}/"), 
          pattern)
      dNow[, `:=`(sub_dir, subDir)]
  }`: task 1 failed - "Could not resolve host: ftp.ncbi.nlm.nih.gov"
  Backtrace:
      ▆
   1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_std.R:42:3
   2.   └─pmparser:::getPubmedFileInfo(localDir, subDirs = subDir, con = conTmp)
   3.     └─foreach(subDir = subDirs, .combine = rbind) %do% ...
   4.       └─e$fun(obj, substitute(ex), parent.frame(), e$data)
  
  [ FAIL 4 | WARN 0 | SKIP 4 | PASS 67 ]
  Error: Test failures
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted