Running 'testthat.R' [91s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pmparser)
  > 
  > test_check('pmparser')
  [ FAIL 1 | WARN 1 | SKIP 4 | PASS 150 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_modify_pubmed_db_std.R:42'): modifyPubmedDb update matches standard ──
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.figshare.com/v2/articles/21502470/files'
  Backtrace:
       ▆
    1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_std.R:42:2
    2.   └─pmparser::getCitation(...)
    3.     └─pmparser:::getCitationInfo()
    4.       ├─data.table::data.table(jsonlite::fromJSON(latestUrl))
    5.       └─jsonlite::fromJSON(latestUrl)
    6.         └─jsonlite:::parse_and_simplify(...)
    7.           └─jsonlite:::parseJSON(txt, bigint_as_char)
    8.             └─jsonlite:::parse_con(txt, bigint_as_char)
    9.               ├─base::open(con, "rb")
   10.               └─base::open.connection(con, "rb")
  
  [ FAIL 1 | WARN 1 | SKIP 4 | PASS 150 ]
  Error: Test failures
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted
Running 'testthat.R' [22s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pmparser)
  > 
  > test_check('pmparser')
  [ FAIL 2 | WARN 4 | SKIP 4 | PASS 122 ]
  
  == Skipped tests ===============================================================
  * On CRAN (4)
  
  == Failed tests ================================================================
  -- Error ('test_modify_pubmed_db_dup.R:51'): 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_std.R:22'): 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")
  
  [ FAIL 2 | WARN 4 | SKIP 4 | PASS 122 ]
  Error: Test failures
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted