Running ‘test-all.R’ [22s/36s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > ## Sys.setenv(NOT_CRAN = "true")
  > ## filter_patt <- "^(?!readPDF)[A-Za-z0-9]+$"
  > file.parts.to.exclude  <- c("readPDF", "crossref", "Read", "zotero")
  > exclude.patt <- paste0(file.parts.to.exclude, collapse = "|")
  > filter.patt <- if (!identical(Sys.getenv("NOT_CRAN"), "true"))
  +                        paste0("^(?!", exclude.patt, ")[A-Za-z0-9]+$",
  +                             collapse = "|")
  > 
  > test_check("RefManageR", perl = TRUE, filter = filter.patt)
  Loading required package: RefManageR
  c(bibentry(bibtype = "Article",
             key = "doody",
             author = person(given = "Terrence",
                             family = "Doody"),
             title = "Hemingway's Style and Jake's Narration",
             year = "1974",
             volume = "4",
             number = "3",
             pages = "212-225",
             langid = "english",
             langidopts = "variant=american",
             related = "matuz:doody",
             relatedstring = "\\autocap{e}xcerpt in",
             journal = "The Journal of Narrative Technique",
             annotation = "An \\texttt{article} entry cited as an excerpt from a\r\n                  \\texttt{collection} entry. Note the format of the\r\n                  \\texttt{related} and \\texttt{relatedstring} fields"),
    bibentry(bibtype = "Article",
             key = "gillies",
             author = person(given = "Alexander",
                             family = "Gillies"),
             title = "Herder and the Preparation of Goethe's Idea of World\r\n                  Literature",
             journaltitle = "Publications of the English Goethe Society",
             date = "1933",
             series = "newseries",
             volume = "9",
             pages = "46-67",
             langid = "english",
             langidopts = "variant=british",
             annotation = "An \\texttt{article} entry with a \\texttt{series} and a\r\n                  \\texttt{volume} field. Note that format of the \\texttt{series}\r\n                  field in the database file"),
    bibentry(bibtype = "Collection",
             key = "matuz:doody",
             editor = person(given = "Roger",
                             family = "Matuz"),
             title = "Contemporary Literary Criticism",
             year = "1990",
             volume = "61",
             publisher = "Gale",
             location = "Detroit",
             pages = "204-208",
             langid = "english",
             langidopts = "variant=american",
             annotation = "A \\texttt{collection} entry providing the excerpt information\r\n                  for the \\texttt{doody} entry. Note the format of the\r\n                  \\texttt{pages} field"))
  [1] J. Smith. _Title with \badmacro_. 2018.
  [ FAIL 11 | WARN 1 | SKIP 11 | PASS 108 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (10)
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-authors.R:71:3): {Herm{\`e}s International S.A.} and Katzfu{\ss}, Matthias ──
  Error in `grepl(parsed$family[[1]], "Hermès International S.A.", useBytes = TRUE)`: invalid regular expression 'Herm{è}s International S.A.', reason 'Invalid contents of {}'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test-authors.R:71:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─base::grepl(...)
  ── Error (test-cites.R:101:3): PrintBibliography ───────────────────────────────
  Error in `order(ps, aut, ttl, yr, decreasing = decreasing)`: translating strings with "bytes" encoding is not allowed
  Backtrace:
      ▆
   1. ├─utils::capture.output(PrintBibliography(bib, .opts = list(check.entries = FALSE))) at test-cites.R:101:2
   2. │ └─base::withVisible(...elt(i))
   3. └─RefManageR::PrintBibliography(bib, .opts = list(check.entries = FALSE))
   4.   ├─base::sort(bib, decreasing = FALSE)
   5.   └─RefManageR:::sort.BibEntry(bib, decreasing = FALSE)
   6.     └─base::order(ps, aut, ttl, yr, decreasing = decreasing)
  ── Error (test-cites.R:108:5): cite than switch to numeric citation ────────────
  Error in `nchar(aut)`: number of characters is not computable in "bytes" encoding, element 4
  Backtrace:
      ▆
   1. └─RefManageR::Cite(bib, 12) at test-cites.R:108:4
   2.   ├─base::with(...)
   3.   └─base::with.default(...)
   4.     └─base::eval(substitute(expr), data, enclos = parent.frame())
   5.       └─base::eval(substitute(expr), data, enclos = parent.frame())
   6.         ├─base::sort(bib, sorting = "none", .bibstyle = bibstyle, return.labs = TRUE)
   7.         └─RefManageR:::sort.BibEntry(...)
   8.           └─base::suppressWarnings(...)
   9.             └─base::withCallingHandlers(...)
  ── Error (test-cites.R:125:5): switching cite.style and citing reference again ──
  Error in `nchar(aut)`: number of characters is not computable in "bytes" encoding, element 4
  Backtrace:
       ▆
    1. └─RefManageR::AutoCite(bib, author = "kant") at test-cites.R:125:4
    2.   └─RefManageR::Cite(...)
    3.     ├─base::with(...)
    4.     └─base::with.default(...)
    5.       └─base::eval(substitute(expr), data, enclos = parent.frame())
    6.         └─base::eval(substitute(expr), data, enclos = parent.frame())
    7.           ├─base::sort(bib, sorting = "none", .bibstyle = bibstyle, return.labs = TRUE)
    8.           └─RefManageR:::sort.BibEntry(...)
    9.             └─base::suppressWarnings(...)
   10.               └─base::withCallingHandlers(...)
  ── Error (test-cites.R:148:5): PrintBibliography when multiple BibEntry objects cited ──
  Error in `nchar(aut)`: number of characters is not computable in "bytes" encoding, element 4
  Backtrace:
       ▆
    1. └─RefManageR::AutoCite(bib, author = "kant") at test-cites.R:148:4
    2.   └─RefManageR::Cite(...)
    3.     ├─base::with(...)
    4.     └─base::with.default(...)
    5.       └─base::eval(substitute(expr), data, enclos = parent.frame())
    6.         └─base::eval(substitute(expr), data, enclos = parent.frame())
    7.           ├─base::sort(bib, sorting = "none", .bibstyle = bibstyle, return.labs = TRUE)
    8.           └─RefManageR:::sort.BibEntry(...)
    9.             └─base::suppressWarnings(...)
   10.               └─base::withCallingHandlers(...)
  ── Error (test-cites.R:164:5): PrintBibliography start and stop parameters ─────
  Error in `nchar(aut)`: number of characters is not computable in "bytes" encoding, element 3
  Backtrace:
       ▆
    1. └─RefManageR::Citet(bib2, author = "Xun") at test-cites.R:164:4
    2.   └─RefManageR::Cite(...)
    3.     ├─base::with(...)
    4.     └─base::with.default(...)
    5.       └─base::eval(substitute(expr), data, enclos = parent.frame())
    6.         └─base::eval(substitute(expr), data, enclos = parent.frame())
    7.           ├─base::sort(bib, sorting = "none", .bibstyle = bibstyle, return.labs = TRUE)
    8.           └─RefManageR:::sort.BibEntry(...)
    9.             └─base::suppressWarnings(...)
   10.               └─base::withCallingHandlers(...)
  ── Error (test-methods.R:17:5): yaml printing with authoryear ──────────────────
  Error in `nchar(aut)`: number of characters is not computable in "bytes" encoding, element 2
  Backtrace:
      ▆
   1. ├─base::print(...) at test-methods.R:17:4
   2. └─RefManageR:::print.BibEntry(...)
   3.   ├─base::format(...)
   4.   └─RefManageR:::format.BibEntry(...)
   5.     ├─base::sort(x, .bibstyle = .bibstyle, sorting = .sorting, return.labs = TRUE)
   6.     └─RefManageR:::sort.BibEntry(...)
   7.       └─base::suppressWarnings(...)
   8.         └─base::withCallingHandlers(...)
  ── Error (test-methods.R:137:5): #62 no Unicode char. convers. when addPeriod ──
  Error in `textConnection(rd)`: translating strings with "bytes" encoding is not allowed
  Backtrace:
      ▆
   1. ├─base::print(bib) at test-methods.R:137:4
   2. └─RefManageR:::print.BibEntry(bib)
   3.   ├─base::format(...)
   4.   └─RefManageR:::format.BibEntry(...)
   5.     └─RefManageR (local) .format_bibentry_via_Rd(tools::Rd2txt)
   6.       └─base::vapply(...)
   7.         └─RefManageR (local) FUN(X[[i]], ...)
   8.           └─base::textConnection(rd)
  ── Error (test-search.R:41:5): full name search ────────────────────────────────
  Error in `tolower(term)`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-search.R:41:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─bib[author = "Martín, Jacinto and Sánchez, Alberto"]
    5. └─RefManageR:::`[.BibEntry`(bib, author = "Martín, Jacinto and Sánchez, Alberto")
    6.   ├─RefManageR (local) add(...)
    7.   │ ├─base::suppressMessages(Reduce("|", x))
    8.   │ │ └─base::withCallingHandlers(...)
    9.   │ └─base::Reduce("|", x)
   10.   └─base::lapply(...)
   11.     └─RefManageR (local) FUN(X[[i]], ...)
   12.       └─RefManageR:::FindBibEntry(bib, trm, fld)
   13.         └─base::tolower(term)
  ── Failure (test-search.R:99:5): three author search ───────────────────────────
  length(bib2[author = "Carroll, R. J. and Simpson, D. G. and Ruppert, D."]) not equal to 5L.
  1/1 mismatches
  [1] 0 - 5 == -5
  ── Failure (test-search.R:106:5): search with author vector (OR) ───────────────
  length(bib2[author = c("Carroll, R. J. and Ruppert, D.", "Carroll, R. J. and Simpson, D. G.")]) not equal to 94L.
  1/1 mismatches
  [1] 0 - 94 == -94
  
  [ FAIL 11 | WARN 1 | SKIP 11 | PASS 108 ]
  Error: Test failures
  Execution halted