Running 'testthat.R' [14s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pmparser)
  > 
  > test_check('pmparser')
  [ FAIL 4 | WARN 8 | SKIP 4 | PASS 64 ]
  
  == Skipped tests ===============================================================
  * On CRAN (4)
  
  == Failed tests ================================================================
  -- Error (test_modify_pubmed_db_dup.R:51:3): modifyPubmedDb create is unique ---
  Error in `gzfile(file, open = "rb")`: cannot open the connection
  Backtrace:
      x
   1. \-pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_dup.R:51:2
   2.   \-pmparser::getCitation(...)
   3.     \-pmparser:::writeTableInChunks(...)
   4.       +-R.utils::countLines(path)
   5.       \-R.utils::countLines.default(path)
   6.         \-base::gzfile(file, open = "rb")
  -- Error (test_modify_pubmed_db_dup.R:67:3): modifyPubmedDb update is unique ---
  Error in `gzfile(file, open = "rb")`: cannot open the connection
  Backtrace:
      x
   1. \-pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_dup.R:67:2
   2.   \-pmparser::getCitation(...)
   3.     \-pmparser:::writeTableInChunks(...)
   4.       +-R.utils::countLines(path)
   5.       \-R.utils::countLines.default(path)
   6.         \-base::gzfile(file, open = "rb")
  -- Error (test_modify_pubmed_db_std.R:22:3): modifyPubmedDb create matches standard --
  Error in `gzfile(file, open = "rb")`: cannot open the connection
  Backtrace:
      x
   1. \-pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_std.R:22:2
   2.   \-pmparser::getCitation(...)
   3.     \-pmparser:::writeTableInChunks(...)
   4.       +-R.utils::countLines(path)
   5.       \-R.utils::countLines.default(path)
   6.         \-base::gzfile(file, open = "rb")
  -- Error (test_modify_pubmed_db_std.R:42:3): modifyPubmedDb update matches standard --
  Error in `gzfile(file, open = "rb")`: cannot open the connection
  Backtrace:
      x
   1. \-pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_std.R:42:2
   2.   \-pmparser::getCitation(...)
   3.     \-pmparser:::writeTableInChunks(...)
   4.       +-R.utils::countLines(path)
   5.       \-R.utils::countLines.default(path)
   6.         \-base::gzfile(file, open = "rb")
  
  [ FAIL 4 | WARN 8 | SKIP 4 | PASS 64 ]
  Error: Test failures
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted