Running ‘testthat.R’ [10s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pakret)
  > 
  > test_check("pakret")
  [ FAIL 12 | WARN 0 | SKIP 4 | PASS 12 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-onload.R:3:3', 'test-pkrt-list.R:35:3',
    'test-pkrt-set.R:33:3', 'test-pkrt.R:94:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-pkrt-list.R:2:3'): pkrt_list() makes a list of citations ───────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'usethis'
  Backtrace:
      ▆
   1. ├─pakret:::load_foo() at test-pkrt-list.R:2:3
   2. │ └─pakret:::local_pkg(...)
   3. │   └─pakret:::create_package(pkg_path, Package, ...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-pkrt-list.R:11:3'): citation lists can be turned into data frames ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'usethis'
  Backtrace:
      ▆
   1. ├─pakret:::load_foo() at test-pkrt-list.R:11:3
   2. │ └─pakret:::local_pkg(...)
   3. │   └─pakret:::create_package(pkg_path, Package, ...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-pkrt-list.R:27:3'): pkrt_list() removes duplicate and base packages ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'usethis'
  Backtrace:
      ▆
   1. ├─pakret:::load_foo() at test-pkrt-list.R:27:3
   2. │ └─pakret:::local_pkg(...)
   3. │   └─pakret:::create_package(pkg_path, Package, ...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-pkrt-set.R:2:3'): custom templates work ────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'usethis'
  Backtrace:
      ▆
   1. ├─pakret:::load_foo() at test-pkrt-set.R:2:3
   2. │ └─pakret:::local_pkg(...)
   3. │   └─pakret:::create_package(pkg_path, Package, ...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-pkrt-set.R:8:3'): `NULL` resets settings to their default value ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'usethis'
  Backtrace:
      ▆
   1. ├─pakret:::load_foo() at test-pkrt-set.R:8:3
   2. │ └─pakret:::local_pkg(...)
   3. │   └─pakret:::create_package(pkg_path, Package, ...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-pkrt-set.R:16:3'): writing bib entries in the desired file works ──
  Error in `"loadNamespace(x)"`: there is no package called 'usethis'
  Backtrace:
       ▆
    1. └─rmarkdown::render(..., output_format = "md_document", quiet = TRUE)
    2.   └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    3.     └─knitr:::process_file(text, output)
    4.       ├─xfun:::handle_error(...)
    5.       ├─base::withCallingHandlers(...)
    6.       └─knitr:::process_group(group)
    7.         └─knitr:::call_block(x)
    8.           └─knitr:::block_exec(params)
    9.             └─knitr:::eng_r(options)
   10.               ├─knitr:::in_input_dir(...)
   11.               │ └─knitr:::in_dir(input_dir(), expr)
   12.               └─knitr (local) evaluate(...)
   13.                 └─evaluate::evaluate(...)
   14.                   └─base::withRestarts(...)
   15.                     └─base (local) withRestartList(expr, restarts)
   16.                       └─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
   17.                         └─base (local) docall(restart$handler, restartArgs)
   18.                           ├─base::do.call("fun", lapply(args, enquote))
   19.                           └─evaluate (local) fun(base::quote(`<pckgNtFE>`))
  ── Error ('test-pkrt.R:3:3'): pkrt() cites and references packages ─────────────
  Error in `"loadNamespace(x)"`: there is no package called 'usethis'
  Backtrace:
       ▆
    1. └─rmarkdown::render(..., output_format = "md_document", quiet = TRUE)
    2.   └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    3.     └─knitr:::process_file(text, output)
    4.       ├─xfun:::handle_error(...)
    5.       ├─base::withCallingHandlers(...)
    6.       └─knitr:::process_group(group)
    7.         └─knitr:::call_block(x)
    8.           └─knitr:::block_exec(params)
    9.             └─knitr:::eng_r(options)
   10.               ├─knitr:::in_input_dir(...)
   11.               │ └─knitr:::in_dir(input_dir(), expr)
   12.               └─knitr (local) evaluate(...)
   13.                 └─evaluate::evaluate(...)
   14.                   └─base::withRestarts(...)
   15.                     └─base (local) withRestartList(expr, restarts)
   16.                       └─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
   17.                         └─base (local) docall(restart$handler, restartArgs)
   18.                           ├─base::do.call("fun", lapply(args, enquote))
   19.                           └─evaluate (local) fun(base::quote(`<pckgNtFE>`))
  ── Error ('test-pkrt.R:11:3'): bib entries are properly appended to bib files ──
  Error in `"loadNamespace(x)"`: there is no package called 'usethis'
  Backtrace:
       ▆
    1. └─rmarkdown::render(..., output_format = "md_document", quiet = TRUE)
    2.   └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    3.     └─knitr:::process_file(text, output)
    4.       ├─xfun:::handle_error(...)
    5.       ├─base::withCallingHandlers(...)
    6.       └─knitr:::process_group(group)
    7.         └─knitr:::call_block(x)
    8.           └─knitr:::block_exec(params)
    9.             └─knitr:::eng_r(options)
   10.               ├─knitr:::in_input_dir(...)
   11.               │ └─knitr:::in_dir(input_dir(), expr)
   12.               └─knitr (local) evaluate(...)
   13.                 └─evaluate::evaluate(...)
   14.                   └─base::withRestarts(...)
   15.                     └─base (local) withRestartList(expr, restarts)
   16.                       └─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
   17.                         └─base (local) docall(restart$handler, restartArgs)
   18.                           ├─base::do.call("fun", lapply(args, enquote))
   19.                           └─evaluate (local) fun(base::quote(`<pckgNtFE>`))
  ── Error ('test-pkrt.R:38:3'): multi-bib entries are properly handled ──────────
  Error in `"loadNamespace(x)"`: there is no package called 'usethis'
  Backtrace:
       ▆
    1. └─rmarkdown::render(..., output_format = "md_document", quiet = TRUE)
    2.   └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    3.     └─knitr:::process_file(text, output)
    4.       ├─xfun:::handle_error(...)
    5.       ├─base::withCallingHandlers(...)
    6.       └─knitr:::process_group(group)
    7.         └─knitr:::call_block(x)
    8.           └─knitr:::block_exec(params)
    9.             └─knitr:::eng_r(options)
   10.               ├─knitr:::in_input_dir(...)
   11.               │ └─knitr:::in_dir(input_dir(), expr)
   12.               └─knitr (local) evaluate(...)
   13.                 └─evaluate::evaluate(...)
   14.                   └─base::withRestarts(...)
   15.                     └─base (local) withRestartList(expr, restarts)
   16.                       └─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
   17.                         └─base (local) docall(restart$handler, restartArgs)
   18.                           ├─base::do.call("fun", lapply(args, enquote))
   19.                           └─evaluate (local) fun(base::quote(`<pckgNtFE>`))
  ── Error ('test-pkrt.R:49:3'): citing the same package again doesn't add a new bib entry ──
  Error in `"loadNamespace(x)"`: there is no package called 'usethis'
  Backtrace:
       ▆
    1. └─rmarkdown::render(..., output_format = "md_document", quiet = TRUE)
    2.   └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    3.     └─knitr:::process_file(text, output)
    4.       ├─xfun:::handle_error(...)
    5.       ├─base::withCallingHandlers(...)
    6.       └─knitr:::process_group(group)
    7.         └─knitr:::call_block(x)
    8.           └─knitr:::block_exec(params)
    9.             └─knitr:::eng_r(options)
   10.               ├─knitr:::in_input_dir(...)
   11.               │ └─knitr:::in_dir(input_dir(), expr)
   12.               └─knitr (local) evaluate(...)
   13.                 └─evaluate::evaluate(...)
   14.                   └─base::withRestarts(...)
   15.                     └─base (local) withRestartList(expr, restarts)
   16.                       └─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
   17.                         └─base (local) docall(restart$handler, restartArgs)
   18.                           ├─base::do.call("fun", lapply(args, enquote))
   19.                           └─evaluate (local) fun(base::quote(`<pckgNtFE>`))
  ── Error ('test-pkrt.R:56:3'): citing no packages doesn't modify bib files ─────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'usethis'
  Backtrace:
      ▆
   1. ├─pakret:::load_foo() at test-pkrt.R:56:3
   2. │ └─pakret:::local_pkg(...)
   3. │   └─pakret:::create_package(pkg_path, Package, ...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-pkrt.R:85:3'): pakret handles references that have a premade key (#18) ──
  Error in `"loadNamespace(x)"`: there is no package called 'usethis'
  Backtrace:
       ▆
    1. └─rmarkdown::render(..., output_format = "md_document", quiet = TRUE)
    2.   └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    3.     └─knitr:::process_file(text, output)
    4.       ├─xfun:::handle_error(...)
    5.       ├─base::withCallingHandlers(...)
    6.       └─knitr:::process_group(group)
    7.         └─knitr:::call_block(x)
    8.           └─knitr:::block_exec(params)
    9.             └─knitr:::eng_r(options)
   10.               ├─knitr:::in_input_dir(...)
   11.               │ └─knitr:::in_dir(input_dir(), expr)
   12.               └─knitr (local) evaluate(...)
   13.                 └─evaluate::evaluate(...)
   14.                   └─base::withRestarts(...)
   15.                     └─base (local) withRestartList(expr, restarts)
   16.                       └─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
   17.                         └─base (local) docall(restart$handler, restartArgs)
   18.                           ├─base::do.call("fun", lapply(args, enquote))
   19.                           └─evaluate (local) fun(base::quote(`<pckgNtFE>`))
  
  [ FAIL 12 | WARN 0 | SKIP 4 | PASS 12 ]
  Error: Test failures
  Execution halted