Running ‘testthat.R’ [9s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pmparser)
  > 
  > test_check('pmparser')
  Saving _problems/test_modify_pubmed_db_dup-53.R
  Saving _problems/test_modify_pubmed_db_dup-69.R
  Saving _problems/test_modify_pubmed_db_std-24.R
  Saving _problems/test_modify_pubmed_db_std-44.R
  [ 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 ──
  Error in `if (md5Database == md5Remote) {     message("Citation table in database is already up-to-date.")     return(invisible()) }`: argument is of length zero
  Backtrace:
      ▆
   1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_dup.R:51:3
   2.   └─pmparser::getCitation(...)
  ── Error ('test_modify_pubmed_db_dup.R:67:3'): modifyPubmedDb update is unique ──
  Error in `if (md5Database == md5Remote) {     message("Citation table in database is already up-to-date.")     return(invisible()) }`: argument is of length zero
  Backtrace:
      ▆
   1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_dup.R:67:3
   2.   └─pmparser::getCitation(...)
  ── Error ('test_modify_pubmed_db_std.R:22:3'): modifyPubmedDb create matches standard ──
  Error in `if (md5Database == md5Remote) {     message("Citation table in database is already up-to-date.")     return(invisible()) }`: argument is of length zero
  Backtrace:
      ▆
   1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_std.R:22:3
   2.   └─pmparser::getCitation(...)
  ── Error ('test_modify_pubmed_db_std.R:42:3'): modifyPubmedDb update matches standard ──
  Error in `if (md5Database == md5Remote) {     message("Citation table in database is already up-to-date.")     return(invisible()) }`: argument is of length zero
  Backtrace:
      ▆
   1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_std.R:42:3
   2.   └─pmparser::getCitation(...)
  
  [ FAIL 4 | WARN 0 | SKIP 4 | PASS 67 ]
  Error:
  ! Test failures.
  Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted