Running 'testthat.R' [4s/5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # browseURL("https://kbroman.org/pkg_primer/pages/tests.html")
  > # browseURL(file.path("https://walczak.org/2017/06",
  > # 		"how-to-add-code-coverage-codecov-to-your-r-package/"))
  > 
  > library(testthat)
  > library(biblio)
  > 
  > test_check("biblio")
  == Failed tests ================================================================
  -- Error (test-reflist.R:12:7): Backups are written ----------------------------
  Error in `file(file, "wb", encoding = encoding, ...)`: cannot open the connection
  Backtrace:
      x
   1. +-biblio::reflist(...) test-reflist.R:12:6
   2. \-biblio::reflist(...)
   3.   \-biblio:::.local(x, ...)
   4.     +-biblio::reflist(...)
   5.     \-biblio::reflist(...)
   6.       \-biblio:::.local(x, ...)
   7.         +-biblio::write_bib(x = x, file = bib_file, encoding = encoding)
   8.         \-biblio:::write_bib.lib_df(x = x, file = bib_file, encoding = encoding)
   9.           \-base::file(file, "wb", encoding = encoding, ...)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 20 ]
  Error: Test failures
  Execution halted
Running ‘testthat.R’ [3s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # browseURL("https://kbroman.org/pkg_primer/pages/tests.html")
  > # browseURL(file.path("https://walczak.org/2017/06",
  > # 		"how-to-add-code-coverage-codecov-to-your-r-package/"))
  > 
  > library(testthat)
  > library(biblio)
  > 
  > test_check("biblio")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-reflist.R:12:7): Backups are written ────────────────────────────
  Error in `file(file, "wb", encoding = encoding, ...)`: cannot open the connection
  Backtrace:
      █
   1. ├─biblio::reflist(...) test-reflist.R:12:6
   2. └─biblio::reflist(...)
   3.   └─biblio:::.local(x, ...)
   4.     ├─biblio::reflist(...)
   5.     └─biblio::reflist(...)
   6.       └─biblio:::.local(x, ...)
   7.         ├─biblio::write_bib(x = x, file = bib_file, encoding = encoding)
   8.         └─biblio:::write_bib.lib_df(x = x, file = bib_file, encoding = encoding)
   9.           └─base::file(file, "wb", encoding = encoding, ...)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 20 ]
  Error: Test failures
  Execution halted
Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # browseURL("https://kbroman.org/pkg_primer/pages/tests.html")
  > # browseURL(file.path("https://walczak.org/2017/06",
  > # 		"how-to-add-code-coverage-codecov-to-your-r-package/"))
  > 
  > library(testthat)
  > library(biblio)
  > 
  > test_check("biblio")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-reflist.R:12:7): Backups are written ────────────────────────────
  Error in `file(file, "wb", encoding = encoding, ...)`: cannot open the connection
  Backtrace:
      █
   1. ├─biblio::reflist(...) test-reflist.R:12:6
   2. └─biblio::reflist(...)
   3.   └─biblio:::.local(x, ...)
   4.     ├─biblio::reflist(...)
   5.     └─biblio::reflist(...)
   6.       └─biblio:::.local(x, ...)
   7.         ├─biblio::write_bib(x = x, file = bib_file, encoding = encoding)
   8.         └─biblio:::write_bib.lib_df(x = x, file = bib_file, encoding = encoding)
   9.           └─base::file(file, "wb", encoding = encoding, ...)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 20 ]
  Error: Test failures
  Execution halted
Running ‘testthat.R’ [4s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # browseURL("https://kbroman.org/pkg_primer/pages/tests.html")
  > # browseURL(file.path("https://walczak.org/2017/06",
  > # 		"how-to-add-code-coverage-codecov-to-your-r-package/"))
  > 
  > library(testthat)
  > library(biblio)
  > 
  > test_check("biblio")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-reflist.R:12:7): Backups are written ────────────────────────────
  Error in `file(file, "wb", encoding = encoding, ...)`: cannot open the connection
  Backtrace:
      █
   1. ├─biblio::reflist(...) test-reflist.R:12:6
   2. └─biblio::reflist(...)
   3.   └─biblio:::.local(x, ...)
   4.     ├─biblio::reflist(...)
   5.     └─biblio::reflist(...)
   6.       └─biblio:::.local(x, ...)
   7.         ├─biblio::write_bib(x = x, file = bib_file, encoding = encoding)
   8.         └─biblio:::write_bib.lib_df(x = x, file = bib_file, encoding = encoding)
   9.           └─base::file(file, "wb", encoding = encoding, ...)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 20 ]
  Error: Test failures
  Execution halted