Running ‘testthat.R’ [47s/34s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(cffr)
  > 
  > test_check("cffr")
  Starting 2 test processes
  [ FAIL 77 | WARN 72 | SKIP 78 | PASS 131 ]
  
  ══ Skipped tests (78) ══════════════════════════════════════════════════════════
  • On CRAN (76): 'test-as_bibentry.R:66:3', 'test-as_bibentry.R:70:3',
    'test-as_cff.R:11:3', 'test-as_cff.R:29:3', 'test-as_cff.R:49:3',
    'test-as_cff.R:76:3', 'test-as_cff.R:86:3', 'test-as_cff_person.R:18:3',
    'test-as_cff_person.R:26:3', 'test-as_cff_person.R:33:3',
    'test-as_cff_person.R:47:3', 'test-as_cff_person.R:179:3', 'test-cff.R:65:3',
    'test-cff.R:87:3', 'test-cff.R:98:3', 'test-as_cff_reference.R:19:3',
    'test-as_cff_reference.R:58:3', 'test-as_cff_reference.R:90:3',
    'test-as_cff_reference.R:141:3', 'test-as_cff_reference.R:180:3',
    'test-as_cff_reference.R:220:3', 'test-as_cff_reference.R:261:3',
    'test-as_cff_reference.R:298:3', 'test-as_cff_reference.R:330:3',
    'test-as_cff_reference.R:359:3', 'test-as_cff_reference.R:392:3',
    'test-as_cff_reference.R:427:3', 'test-as_cff_reference.R:462:3',
    'test-as_cff_reference.R:490:3', 'test-as_cff_reference.R:527:3',
    'test-as_cff_reference.R:569:3', 'test-as_cff_reference.R:602:3',
    'test-as_cff_reference.R:632:3', 'test-as_cff_reference.R:730:3',
    'test-as_cff_reference.R:753:3', 'test-as_cff_reference.R:777:3',
    'test-cff_gha_update.R:2:3', 'test-cff_modify.R:6:3',
    'test-cff_create.R:8:3', 'test-cff_create.R:14:3', 'test-cff_create.R:112:3',
    'test-cff_create.R:298:3', 'test-cff_create.R:419:3',
    'test-cff_create.R:515:3', 'test-cff_read_bib_text.R:4:3',
    'test-cff_read_bib_text.R:35:3', 'test-cff_read.R:2:3',
    'test-cff_read.R:10:3', 'test-cff_read.R:24:3', 'test-cff_read.R:75:3',
    'test-cff_read.R:104:3', 'test-cff_write_misc.R:2:3',
    'test-cff_write_misc.R:119:3', 'test-deprecated.R:22:3',
    'test-deprecated.R:58:3', 'test-deprecated.R:66:3', 'test-deprecated.R:73:3',
    'test-deprecated.R:81:3', 'test-mock-package.R:2:3',
    'test-utils-alerts.R:29:3', 'test-utils-alerts.R:46:3',
    'test-utils-cff_ref.R:7:3', 'test-utils-create.R:27:3',
    'test-methods.R:108:3', 'test-methods.R:192:3', 'test-methods.R:222:3',
    'test-methods.R:231:3', 'test-utils-schema.R:11:3',
    'test-utils-persons.R:11:3', 'test-utils-persons.R:47:3',
    'test-utils-persons.R:76:3', 'test-utils-persons.R:93:3',
    'test-utils-persons.R:111:3', 'test-utils-persons.R:122:3',
    'test-utils-persons.R:135:3', 'test-utils-persons.R:143:3'
  • Snapshot created with R 4.4.* (2): 'test-utils-create.R:3:3',
    'test-methods.R:139:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-as_bibentry.R:104:3'): as_bibentry character ───────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry("rmarkdown") at test-as_bibentry.R:104:3
   2. └─cffr:::as_bibentry.character("rmarkdown")
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-as_bibentry.R:132:3'): as_bibentry cff ─────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(f) at test-as_bibentry.R:132:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-as_cff.R:133:3'): Reading full cff ─────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(full) at test-as_cff.R:133:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-assertions.R:105:3'): Check is cff file ────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─testthat::expect_true(is_cff_file("CIt_aT.cff")) at test-assertions.R:105:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cffr:::is_cff_file("CIt_aT.cff")
   5.   └─cffr:::detect_x_source(x)
   6.     └─utils::installed.packages()
   7.       └─base::file.path(...)
  ── Error ('test-cff.R:2:3'): Test message on cff ───────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(def <- cff("abcde")) at test-cff.R:2:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-cff.R:20:3'): Walk trough full lifecycle ───────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(complete) at test-cff.R:20:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff.R:51:3'): Recursive parsing ────────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(read <- cff(complete)) at test-cff.R:51:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-as_cff_reference.R:654:3'): Skip misc without title ────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(cff(), keys = list(references = bib_cff)) at test-as_cff_reference.R:654:3
   2.   └─utils::installed.packages()
   3.     └─base::file.path(...)
  ── Error ('test-as_cff_reference.R:688:3'): Skip misc without title, not skipping the good one ──
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(cff(), keys = list(references = bib_cff)) at test-as_cff_reference.R:688:3
   2.   └─utils::installed.packages()
   3.     └─base::file.path(...)
  ── Error ('test-cff_create.R:43:3'): Test dependencies extraction ──────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create("jsonlite") at test-cff_create.R:43:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:65:5'): Validate all DESCRIPTION files ────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(allfiles[i], gh_keywords = FALSE) at test-cff_create.R:65:5
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:78:3'): No auto generate preferred citations ──────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(...) at test-cff_create.R:78:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-cff_create.R:93:3'): Fuzzy match on cff_create ─────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(cff()) at test-cff_create.R:93:3
   2.   └─utils::installed.packages()
   3.     └─base::file.path(...)
  ── Error ('test-cff_create.R:124:3'): Default roles ────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(p, dependencies = FALSE) at test-cff_create.R:124:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:134:3'): Add new roles ────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(p, dependencies = FALSE) at test-cff_create.R:134:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:148:3'): Default roles on write ───────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(p, dependencies = FALSE) at test-cff_create.R:148:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:163:3'): Add new roles ────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(p, dependencies = FALSE) at test-cff_create.R:163:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:176:3'): Add new roles on write ───────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(p) at test-cff_create.R:176:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:198:3'): Coerce date ──────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, gh_keywords = FALSE, keys = list(references = NULL)) at test-cff_create.R:198:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:213:3'): Coerce date in another format ────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, gh_keywords = FALSE, keys = list(references = NULL)) at test-cff_create.R:213:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:229:3'): No date coerced in DESCRIPTION without it ──
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, keys = list(references = NULL)) at test-cff_create.R:229:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:242:3'): Parsing many urls ────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, gh_keywords = FALSE, keys = list(references = NULL)) at test-cff_create.R:242:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:259:3'): Parsing Gitlab ───────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, keys = list(references = NULL)) at test-cff_create.R:259:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:276:3'): Parsing many persons ─────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, gh_keywords = FALSE, keys = list(references = NULL)) at test-cff_create.R:276:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:326:3'): Parsing two maintainers ──────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, gh_keywords = FALSE, keys = list(references = NULL)) at test-cff_create.R:326:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:344:3'): Parsing r-universe ───────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, gh_keywords = FALSE, keys = list(references = NULL)) at test-cff_create.R:344:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:362:3'): Parsing Bioconductor ─────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, gh_keywords = FALSE, keys = list(references = NULL)) at test-cff_create.R:362:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:379:3'): Parsing Posit Package Manager ────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, gh_keywords = FALSE, keys = list(references = NULL)) at test-cff_create.R:379:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:405:3'): Search package on CRAN ───────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(tmp, gh_keywords = FALSE) at test-cff_create.R:405:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_create.R:478:3'): Validate keywords ────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(tmp) at test-cff_create.R:478:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_read.R:126:3'): cff_read CITATION_basic ────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(path, my_meta) at test-cff_read.R:126:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_read.R:146:3'): cff_read CITATION_auto ─────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(cit_path, my_meta) at test-cff_read.R:146:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_read.R:156:3'): cff_read CITATION_rmarkdown ────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(cit_path, my_meta) at test-cff_read.R:156:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_read.R:214:3'): Corrupt CITATION ───────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-cff_read.R:214:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─testthat::expect_message(anull <- cff_read(tmp), "It was not possible to read")
    8. │ └─testthat:::expect_condition_matching(...)
    9. │   └─testthat:::quasi_capture(...)
   10. │     ├─testthat (local) .capture(...)
   11. │     │ └─base::withCallingHandlers(...)
   12. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   13. └─cffr::cff_read(tmp)
   14.   └─cffr:::detect_x_source(path)
   15.     └─utils::installed.packages()
   16.       └─base::file.path(...)
  ── Error ('test-cff_read.R:246:3'): Creating cff from packages encoded in latin1 ──
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_path, keys = list(references = bib)) at test-cff_read.R:246:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_validate.R:7:3'): Validate full CITATION.cff ───────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(full) at test-cff_validate.R:7:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_validate.R:21:3'): Validate minimal CITATION.cff ───────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─testthat::expect_true(cff_validate(full, verbose = FALSE)) at test-cff_validate.R:21:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cffr::cff_validate(full, verbose = FALSE)
   5.   └─cffr:::abort_if_not_cff(x)
   6.     └─cffr:::detect_x_source(x)
   7.       └─utils::installed.packages()
   8.         └─base::file.path(...)
  ── Error ('test-cff_validate.R:29:3'): Validate error CITATION.cff ─────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(err) at test-cff_validate.R:29:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_validate.R:41:3'): Validate cffr objects from installed packages ──
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create("jsonlite") at test-cff_validate.R:41:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_write.R:4:3'): Write basic ─────────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_file) at test-cff_write.R:4:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_write.R:22:3'): Write to a non-existing folder ─────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_file) at test-cff_write.R:22:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_write.R:48:3'): Write no encoding ──────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_file) at test-cff_write.R:48:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_write.R:71:3'): Add new keys ───────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_file) at test-cff_write.R:71:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_write.R:112:3'): Append keys ───────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create(desc_file) at test-cff_write.R:112:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_write.R:154:3'): Fix extension of the file ─────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(cff_write(cffobj, tmp, verbose = FALSE)) at test-cff_write.R:154:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─cffr::cff_write(cffobj, tmp, verbose = FALSE)
   10.   └─cffr::cff_create(...)
   11.     └─utils::installed.packages()
   12.       └─base::file.path(...)
  ── Error ('test-cff_write.R:169:3'): test encoding utf8 ────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(cff_write(cffobj, tmp, verbose = FALSE)) at test-cff_write.R:169:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─cffr::cff_write(cffobj, tmp, verbose = FALSE)
   10.   └─cffr::cff_create(...)
   11.     └─utils::installed.packages()
   12.       └─base::file.path(...)
  ── Error ('test-cff_write.R:184:3'): test encoding others ──────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-cff_write.R:184:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─cffr::cff_write(cffobj, tmp, verbose = FALSE, encoding = "ASCII//TRANSLIT")
   10.   └─cffr::cff_create(...)
   11.     └─utils::installed.packages()
   12.       └─base::file.path(...)
  ── Error ('test-cff_write_misc.R:12:3'): Write ─────────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─testthat::expect_message(cff_write_bib(bib, file, verbose = TRUE)) at test-cff_write_misc.R:12:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─cffr::cff_write_bib(bib, file, verbose = TRUE)
    8.   └─cffr:::detect_x_source(file)
    9.     └─utils::installed.packages()
   10.       └─base::file.path(...)
  ── Error ('test-cff_write_misc.R:39:3'): Write ASCII ───────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-cff_write_misc.R:39:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─cffr::cff_write_bib(bib, file, verbose = FALSE, ascii = TRUE)
   10.   └─cffr:::detect_x_source(file)
   11.     └─utils::installed.packages()
   12.       └─base::file.path(...)
  ── Error ('test-cff_write_misc.R:53:3'): Test append ───────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(cf) at test-cff_write_misc.R:53:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-cff_write_misc.R:99:3'): Test dir creation ─────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(cff_write_bib(bib, file, verbose = FALSE)) at test-cff_write_misc.R:99:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─cffr::cff_write_bib(bib, file, verbose = FALSE)
   10.   └─cffr:::detect_x_source(file)
   11.     └─utils::installed.packages()
   12.       └─base::file.path(...)
  ── Error ('test-cff_write_misc.R:125:3'): Write CITATION ───────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(thepath) at test-cff_write_misc.R:125:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-deprecated.R:2:3'): cff_extract_to_bibtex ──────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create("cffr") at test-deprecated.R:2:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-deprecated.R:11:3'): cff_to_bibtex ─────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_create("cffr") at test-deprecated.R:11:3
   2.   └─cffr:::detect_x_source(x)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-deprecated.R:46:3'): write_bib ─────────────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(write_bib(bib, tmp, verbose = FALSE)) at test-deprecated.R:46:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-utils-alerts.R:10:3'): Check abort_if_not_cff ──────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(abort_if_not_cff(file)) at test-utils-alerts.R:10:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─cffr:::abort_if_not_cff(file)
   10.   └─cffr:::detect_x_source(x)
   11.     └─utils::installed.packages()
   12.       └─base::file.path(...)
  ── Error ('test-utils-cff_create.R:17:5'): Parse Licenses on CRAN (Top 10) ─────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(r <- cff_validate(cff_create(tmp), verbose = FALSE)) at test-utils-cff_create.R:17:5
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─cffr::cff_validate(cff_create(tmp), verbose = FALSE)
   10. │ └─cffr:::is_cff(x)
   11. └─cffr::cff_create(tmp)
   12.   └─cffr:::detect_x_source(x)
   13.     └─utils::installed.packages()
   14.       └─base::file.path(...)
  ── Error ('test-methods.R:4:3'): as data frame complete ────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(path) at test-methods.R:4:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-methods.R:30:3'): as data frame partial ────────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(path) at test-methods.R:30:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-methods.R:58:3'): Convert a citation only ──────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(cff_create(path)) at test-methods.R:58:3
   2. └─cffr::cff_create(path)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-methods.R:114:3'): Convert list of authors ─────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(path) at test-methods.R:114:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-methods.R:205:3'): Errors on other as.person methods ───────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─cffr::cff_read(path) at test-methods.R:205:3
   2.   └─cffr:::detect_x_source(path)
   3.     └─utils::installed.packages()
   4.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:10:3'): preferred-citation-book-missing ──
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(s <- as_bibentry(x)) at test-xtra-check-bibtex-ruby.R:10:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-xtra-check-bibtex-ruby.R:18:3'): preferred-citation-book ───────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:18:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:27:3'): preferred-citation-conference-paper-2 ──
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:27:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:36:3'): preferred-citation-conference-paper-missing ──
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:36:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:45:3'): preferred-citation-conference-paper ──
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:45:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:54:3'): preferred-citation-manual ─────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:54:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:63:3'): preferred-citation-no-month ───
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:63:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:72:3'): preferred-citation-no-vol ─────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:72:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:82:3'): preferred-citation-pamphlet ───
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:82:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:91:3'): preferred-citation-report-no-institution ──
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:91:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:100:3'): preferred-citation-report ────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:100:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:110:3'): preferred-citation-unpublished ──
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:110:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:119:3'): reprozip ─────────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:119:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:129:3'): smith-et-al ──────────────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:129:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  ── Error ('test-xtra-check-bibtex-ruby.R:138:3'): tidyverse-joss-paper ─────────
  Error in `if (cache_user_dir) tools::R_user_dir("base", "cache") else tempdir()`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─cffr::as_bibentry(x) at test-xtra-check-bibtex-ruby.R:138:3
   2. └─cffr:::as_bibentry.character(x)
   3.   └─cffr:::detect_x_source(x)
   4.     └─utils::installed.packages()
   5.       └─base::file.path(...)
  
  [ FAIL 77 | WARN 72 | SKIP 78 | PASS 131 ]
  Deleting unused snapshots:
  • cff_write/appendkeys.cff
  • cff_write/asci_trans.cff
  • cff_write/basic.cff
  • cff_write/fix_extension.cff
  • cff_write/new_folder.cff
  • cff_write/newkeys.cff
  • cff_write/noencoding.cff
  • cff_write/utf8.cff
  • cff_write_misc/CITAT_ION
  • cff_write_misc/append.bib
  • cff_write_misc/ascii.bib
  • cff_write_misc/noext.bib
  Error: Test failures
  Execution halted