Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pmparser)
  > 
  > test_check('pmparser')
  [ FAIL 4 | WARN 4 | 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 `open.connection(con, "rb")`: cannot open the connection to 'https://api.figshare.com/v2/collections/4586573/articles'
  Backtrace:
       ▆
    1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_dup.R:51:3
    2.   └─pmparser::getCitation(...)
    3.     └─pmparser:::getCitationInfo()
    4.       ├─data.table::data.table(jsonlite::fromJSON(iciteUrl))
    5.       └─jsonlite::fromJSON(iciteUrl)
    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")
  ── Error ('test_modify_pubmed_db_dup.R:67:3'): modifyPubmedDb update is unique ──
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.figshare.com/v2/collections/4586573/articles'
  Backtrace:
       ▆
    1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_dup.R:67:3
    2.   └─pmparser::getCitation(...)
    3.     └─pmparser:::getCitationInfo()
    4.       ├─data.table::data.table(jsonlite::fromJSON(iciteUrl))
    5.       └─jsonlite::fromJSON(iciteUrl)
    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")
  ── Error ('test_modify_pubmed_db_std.R:22:3'): modifyPubmedDb create matches standard ──
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.figshare.com/v2/collections/4586573/articles'
  Backtrace:
       ▆
    1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_std.R:22:3
    2.   └─pmparser::getCitation(...)
    3.     └─pmparser:::getCitationInfo()
    4.       ├─data.table::data.table(jsonlite::fromJSON(iciteUrl))
    5.       └─jsonlite::fromJSON(iciteUrl)
    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")
  ── Error ('test_modify_pubmed_db_std.R:42:3'): modifyPubmedDb update matches standard ──
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.figshare.com/v2/collections/4586573/articles'
  Backtrace:
       ▆
    1. └─pmparser::modifyPubmedDb(...) at test_modify_pubmed_db_std.R:42:3
    2.   └─pmparser::getCitation(...)
    3.     └─pmparser:::getCitationInfo()
    4.       ├─data.table::data.table(jsonlite::fromJSON(iciteUrl))
    5.       └─jsonlite::fromJSON(iciteUrl)
    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 4 | WARN 4 | SKIP 4 | PASS 67 ]
  Error: Test failures
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted