Running ‘testthat.R’ [31s/46s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(roxygen2)
  > 
  > test_check("roxygen2")
  [WARNING] Duplicate link reference '[roxygenize()]' at file394ed8577b6083.knit.md line 8 column 1
  [WARNING] Duplicate link reference '[stringr::str_length()]' at file394ed8577b6083.knit.md line 9 column 1
  [ FAIL 33 | WARN 5 | SKIP 52 | PASS 749 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (51)
  • file.exists(test_path("../../DESCRIPTION")) is not TRUE (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-collate.R:14:3): update_collate() checks that directory exists ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─testthat::expect_snapshot(update_collate("doesn't-exist"), error = TRUE) at test-collate.R:14:2
    2.   └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    3.     ├─base::unlist(lapply(results, replay))
    4.     └─base::lapply(results, replay)
    5.       └─testthat (local) FUN(X[[i]], ...)
    6.         ├─testthat:::snapshot_replay(x, state, transform = transform, cnd_class = cnd_class)
    7.         └─testthat:::snapshot_replay.condition(...)
    8.           └─rlang::cnd_message(x, prefix = TRUE)
    9.             └─rlang:::cnd_message_format_prefixed(cnd, ..., parent = FALSE)
   10.               └─rlang:::cnd_message_format(cnd, ..., alert = alert)
   11.                 └─rlang (local) cli_format(glue_escape(lines))
   12.                   └─rlang:::.rlang_cli_format(x, cli::format_error)
   13.                     └─cli::cli_format(x, .envir = emptyenv())
   14.                       └─cli:::fmt(...)
   15.                         └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   16.                           ├─base::do.call(app[[msg$type]], msg$args)
   17.                           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-54", class = NULL)
   18.                             └─cli:::clii_bullets(app, text, id, class)
   19.                               └─base::lapply(...)
   20.                                 └─cli (local) FUN(X[[i]], ...)
   21.                                   └─app$text(text[[i]])
   22.                                     └─cli:::clii_text(app, text)
   23.                                       └─app$xtext(text)
   24.                                         └─cli:::clii__xtext(...)
   25.                                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   26.                                             └─base::lapply(pars, ansi_trimws)
   27.                                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-load.R:8:3): can load simple package with load_pkgload() ────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(env <- load_pkgload(test_path("testRbuildignore"))) at test-load.R:8:2
    2. │ └─base::withCallingHandlers(...)
    3. └─roxygen2::load_pkgload(test_path("testRbuildignore"))
    4.   └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
    5.     └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
    6.       ├─rlang::inform(...)
    7.       │ └─message %||% ""
    8.       └─cli::format_message(message, .envir = .envir)
    9.         └─cli:::fmt(...)
   10.           └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   11.             ├─base::do.call(app[[msg$type]], msg$args)
   12.             └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-68", class = NULL)
   13.               └─cli:::clii_bullets(app, text, id, class)
   14.                 └─base::lapply(...)
   15.                   └─cli (local) FUN(X[[i]], ...)
   16.                     └─app$text(text[[i]])
   17.                       └─cli:::clii_text(app, text)
   18.                         └─app$xtext(text)
   19.                           └─cli:::clii__xtext(...)
   20.                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   21.                               └─base::lapply(pars, ansi_trimws)
   22.                                 └─cli (local) FUN(X[[i]], ...)
  ── Error (test-markdown-code.R:120:3): multi-line inline code gives useful warning ──
  `out <- roc_proc_text(rd_roclet(), block)[[1]]` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-markdown-code.R:123:3): multi-line inline code gives useful warning ──
  Error in `eval_bare(expr, quo_get_env(quo))`: object 'out' not found
  Backtrace:
      ▆
   1. └─testthat::expect_equal(out$get_value("description"), "\\verb{r 1 + 1}") at test-markdown-code.R:123:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error (test-markdown-link.R:68:3): non-text nodes in links fails ────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-markdown.R:444:3): unhandled markdown generates warning ─────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_snapshot_warning(...) at test-markdown.R:444:2
    2. │ └─testthat:::expect_snapshot_condition(...)
    3. │   └─testthat:::capture_matching_condition(x, cnd_matcher(class))
    4. │     └─base::withCallingHandlers(...)
    5. └─roxygen2::roc_proc_text(rd_roclet(), text)
    6.   └─roxygen2::parse_text(input, env = env)
    7.     └─roxygen2::parse_file(file, env = env, srcref_path = "<text>")
    8.       └─roxygen2:::tokenize_file(file, srcref_path = srcref_path)
    9.         └─purrr::pmap(...)
   10.           └─roxygen2 (local) .f(...)
   11.             └─roxygen2:::parse_tags(tokens)
   12.               ├─roxygen2::roxy_tag_parse(tokens[[i]])
   13.               └─roxygen2:::roxy_tag_parse.roxy_tag_description(tokens[[i]])
   14.                 └─roxygen2::tag_markdown_with_sections(x)
   15.                   └─roxygen2:::markdown_if_active(x$raw, x, sections = TRUE)
   16.                     └─roxygen2:::markdown(text, tag, sections)
   17.                       └─roxygen2:::markdown_pass2(escaped_text, tag = tag, sections = sections)
   18.                         └─roxygen2:::mdxml_children_to_rd_top(mdxml, state)
   19.                           └─purrr::map_chr(xml_children(xml), mdxml_node_to_rd, state)
   20.                             └─roxygen2 (local) .f(.x[[i]], ...)
   21.                               └─roxygen2:::mdxml_unsupported(xml, state$tag, "block quotes")
   22.                                 └─roxygen2::warn_roxy_tag(...)
   23.                                   └─cli::cli_warn(message, ..., .envir = parent.frame())
   24.                                     ├─rlang::warn(...)
   25.                                     │ └─rlang:::validate_signal_args(...)
   26.                                     └─cli::format_warning(escaped_message, .envir = .envir)
   27.                                       └─cli:::fmt(...)
   28.                                         └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   29.                                           ├─base::do.call(app[[msg$type]], msg$args)
   30.                                           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-320", class = NULL)
   31.                                             └─cli:::clii_bullets(app, text, id, class)
   32.                                               └─base::lapply(...)
   33.                                                 └─cli (local) FUN(X[[i]], ...)
   34.                                                   └─app$text(text[[i]])
   35.                                                     └─cli:::clii_text(app, text)
   36.                                                       └─app$xtext(text)
   37.                                                         └─cli:::clii__xtext(...)
   38.                                                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   39.                                                             └─base::lapply(pars, ansi_trimws)
   40.                                                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-markdown.R:459:3): level 1 heading in markdown generates warning in some tags ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(roc_proc_text(rd_roclet(), text), "level 1 markdown headings") at test-markdown.R:459:2
    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. └─roxygen2::roc_proc_text(rd_roclet(), text)
    8.   └─roxygen2::parse_text(input, env = env)
    9.     └─roxygen2::parse_file(file, env = env, srcref_path = "<text>")
   10.       └─roxygen2:::tokenize_file(file, srcref_path = srcref_path)
   11.         └─purrr::pmap(...)
   12.           └─roxygen2 (local) .f(...)
   13.             └─roxygen2:::parse_tags(tokens)
   14.               ├─roxygen2::roxy_tag_parse(tokens[[i]])
   15.               └─roxygen2:::roxy_tag_parse.roxy_tag_seealso(tokens[[i]])
   16.                 └─roxygen2::tag_markdown(x)
   17.                   └─roxygen2:::markdown_if_active(x$raw, x)
   18.                     └─roxygen2:::markdown(text, tag, sections)
   19.                       └─roxygen2:::markdown_pass2(escaped_text, tag = tag, sections = sections)
   20.                         └─roxygen2:::mdxml_children_to_rd_top(mdxml, state)
   21.                           └─purrr::map_chr(xml_children(xml), mdxml_node_to_rd, state)
   22.                             └─roxygen2 (local) .f(.x[[i]], ...)
   23.                               └─roxygen2:::mdxml_heading(xml, state)
   24.                                 └─roxygen2:::mdxml_unsupported(xml, state$tag, "level 1 markdown headings")
   25.                                   └─roxygen2::warn_roxy_tag(...)
   26.                                     └─cli::cli_warn(message, ..., .envir = parent.frame())
   27.                                       ├─rlang::warn(...)
   28.                                       │ └─rlang:::validate_signal_args(...)
   29.                                       └─cli::format_warning(escaped_message, .envir = .envir)
   30.                                         └─cli:::fmt(...)
   31.                                           └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   32.                                             ├─base::do.call(app[[msg$type]], msg$args)
   33.                                             └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-329", class = NULL)
   34.                                               └─cli:::clii_bullets(app, text, id, class)
   35.                                                 └─base::lapply(...)
   36.                                                   └─cli (local) FUN(X[[i]], ...)
   37.                                                     └─app$text(text[[i]])
   38.                                                       └─cli:::clii_text(app, text)
   39.                                                         └─app$xtext(text)
   40.                                                           └─cli:::clii__xtext(...)
   41.                                                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   42.                                                               └─base::lapply(pars, ansi_trimws)
   43.                                                                 └─cli (local) FUN(X[[i]], ...)
  ── Error (test-namespace.R:4:3): end-to-end NAMESPACE generation works ─────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(roxygenise()) at test-namespace.R:4:2
    2. │ └─base::withCallingHandlers(...)
    3. └─roxygen2::roxygenise()
    4.   └─roxygen2 (local) load_code(base_path)
    5.     └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
    6.       └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
    7.         ├─rlang::inform(...)
    8.         │ └─message %||% ""
    9.         └─cli::format_message(message, .envir = .envir)
   10.           └─cli:::fmt(...)
   11.             └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   12.               ├─base::do.call(app[[msg$type]], msg$args)
   13.               └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-337", class = NULL)
   14.                 └─cli:::clii_bullets(app, text, id, class)
   15.                   └─base::lapply(...)
   16.                     └─cli (local) FUN(X[[i]], ...)
   17.                       └─app$text(text[[i]])
   18.                         └─cli:::clii_text(app, text)
   19.                           └─app$xtext(text)
   20.                             └─cli:::clii__xtext(...)
   21.                               └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   22.                                 └─base::lapply(pars, ansi_trimws)
   23.                                   └─cli (local) FUN(X[[i]], ...)
  ── Error (test-object-from-call.R:28:3): can document eager data ───────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(roxygenise()) at test-object-from-call.R:28:2
    2. │ └─base::withCallingHandlers(...)
    3. └─roxygen2::roxygenise()
    4.   └─roxygen2 (local) load_code(base_path)
    5.     └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
    6.       └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
    7.         ├─rlang::inform(...)
    8.         │ └─message %||% ""
    9.         └─cli::format_message(message, .envir = .envir)
   10.           └─cli:::fmt(...)
   11.             └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   12.               ├─base::do.call(app[[msg$type]], msg$args)
   13.               └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-388", class = NULL)
   14.                 └─cli:::clii_bullets(app, text, id, class)
   15.                   └─base::lapply(...)
   16.                     └─cli (local) FUN(X[[i]], ...)
   17.                       └─app$text(text[[i]])
   18.                         └─cli:::clii_text(app, text)
   19.                           └─app$xtext(text)
   20.                             └─cli:::clii__xtext(...)
   21.                               └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   22.                                 └─base::lapply(pars, ansi_trimws)
   23.                                   └─cli (local) FUN(X[[i]], ...)
  ── Error (test-object-from-call.R:35:3): can document lazy data ────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(roxygenise()) at test-object-from-call.R:35:2
    2. │ └─base::withCallingHandlers(...)
    3. └─roxygen2::roxygenise()
    4.   └─roxygen2 (local) load_code(base_path)
    5.     └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
    6.       └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
    7.         ├─rlang::inform(...)
    8.         │ └─message %||% ""
    9.         └─cli::format_message(message, .envir = .envir)
   10.           └─cli:::fmt(...)
   11.             └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   12.               ├─base::do.call(app[[msg$type]], msg$args)
   13.               └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-395", class = NULL)
   14.                 └─cli:::clii_bullets(app, text, id, class)
   15.                   └─base::lapply(...)
   16.                     └─cli (local) FUN(X[[i]], ...)
   17.                       └─app$text(text[[i]])
   18.                         └─cli:::clii_text(app, text)
   19.                           └─app$xtext(text)
   20.                             └─cli:::clii__xtext(...)
   21.                               └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   22.                                 └─base::lapply(pars, ansi_trimws)
   23.                                   └─cli (local) FUN(X[[i]], ...)
  ── Error (test-rd-examples.R:52:3): @example gives warning if used instead of @examples ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_snapshot_warning(...) at test-rd-examples.R:52:2
    2. │ └─testthat:::expect_snapshot_condition(...)
    3. │   └─testthat:::capture_matching_condition(x, cnd_matcher(class))
    4. │     └─base::withCallingHandlers(...)
    5. └─roxygen2::roc_proc_text(rd_roclet(), "\n      #' @name a\n      #' @title a\n      #' @example\n      #' a <- 1\n      #' a + b\n      NULL")
    6.   └─roxygen2::parse_text(input, env = env)
    7.     └─roxygen2::parse_file(file, env = env, srcref_path = "<text>")
    8.       └─roxygen2:::tokenize_file(file, srcref_path = srcref_path)
    9.         └─purrr::pmap(...)
   10.           └─roxygen2 (local) .f(...)
   11.             └─roxygen2:::parse_tags(tokens)
   12.               ├─roxygen2::roxy_tag_parse(tokens[[i]])
   13.               └─roxygen2:::roxy_tag_parse.roxy_tag_example(tokens[[i]])
   14.                 └─roxygen2::warn_roxy_tag(x, c("must be a single line", i = "Do you want @examples?"))
   15.                   └─cli::cli_warn(message, ..., .envir = parent.frame())
   16.                     ├─rlang::warn(...)
   17.                     │ └─rlang:::validate_signal_args(...)
   18.                     └─cli::format_warning(escaped_message, .envir = .envir)
   19.                       └─cli:::fmt(...)
   20.                         └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   21.                           ├─base::do.call(app[[msg$type]], msg$args)
   22.                           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-449", class = NULL)
   23.                             └─cli:::clii_bullets(app, text, id, class)
   24.                               └─base::lapply(...)
   25.                                 └─cli (local) FUN(X[[i]], ...)
   26.                                   └─app$text(text[[i]])
   27.                                     └─cli:::clii_text(app, text)
   28.                                       └─app$xtext(text)
   29.                                         └─cli:::clii__xtext(...)
   30.                                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   31.                                             └─base::lapply(pars, ansi_trimws)
   32.                                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-rd-inherit.R:279:3): warns if can't find section ────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_snapshot_warning(...) at test-rd-inherit.R:279:2
    2. │ └─testthat:::expect_snapshot_condition(...)
    3. │   └─testthat:::capture_matching_condition(x, cnd_matcher(class))
    4. │     └─base::withCallingHandlers(...)
    5. └─roxygen2::roc_proc_text(rd_roclet(), code)
    6.   ├─roxygen2::roclet_process(roclet, blocks, env = env, base_path = ".")
    7.   └─roxygen2:::roclet_process.roclet_rd(...)
    8.     └─roxygen2:::topics_process_inherit(topics, env)
    9.       └─topics$topo_apply(function(x) x$inherits_section_from(), inherit_section)
   10.         └─roxygen2 (local) fun(topic, self, ...)
   11.           └─cli::cli_warn(...)
   12.             ├─rlang::warn(...)
   13.             │ └─rlang:::validate_signal_args(...)
   14.             └─cli::format_warning(escaped_message, .envir = .envir)
   15.               └─cli:::fmt(...)
   16.                 └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   17.                   ├─base::do.call(app[[msg$type]], msg$args)
   18.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-514", class = NULL)
   19.                     └─cli:::clii_bullets(app, text, id, class)
   20.                       └─base::lapply(...)
   21.                         └─cli (local) FUN(X[[i]], ...)
   22.                           └─app$text(text[[i]])
   23.                             └─cli:::clii_text(app, text)
   24.                               └─app$xtext(text)
   25.                                 └─cli:::clii__xtext(...)
   26.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   27.                                     └─base::lapply(pars, ansi_trimws)
   28.                                       └─cli (local) FUN(X[[i]], ...)
  ── Error (test-rd-inherit.R:479:3): warned if no params need documentation ─────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_snapshot_warning(...) at test-rd-inherit.R:479:2
    2. │ └─testthat:::expect_snapshot_condition(...)
    3. │   └─testthat:::capture_matching_condition(x, cnd_matcher(class))
    4. │     └─base::withCallingHandlers(...)
    5. └─roxygen2::roc_proc_text(rd_roclet(), code)
    6.   ├─roxygen2::roclet_process(roclet, blocks, env = env, base_path = ".")
    7.   └─roxygen2:::roclet_process.roclet_rd(...)
    8.     └─roxygen2:::topics_process_inherit(topics, env)
    9.       └─topics$topo_apply(inherits("params"), inherit_params)
   10.         └─roxygen2 (local) fun(topic, self, ...)
   11.           └─cli::cli_warn(...)
   12.             ├─rlang::warn(...)
   13.             │ └─rlang:::validate_signal_args(...)
   14.             └─cli::format_warning(escaped_message, .envir = .envir)
   15.               └─cli:::fmt(...)
   16.                 └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   17.                   ├─base::do.call(app[[msg$type]], msg$args)
   18.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-523", class = NULL)
   19.                     └─cli:::clii_bullets(app, text, id, class)
   20.                       └─base::lapply(...)
   21.                         └─cli (local) FUN(X[[i]], ...)
   22.                           └─app$text(text[[i]])
   23.                             └─cli:::clii_text(app, text)
   24.                               └─app$xtext(text)
   25.                                 └─cli:::clii__xtext(...)
   26.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   27.                                     └─base::lapply(pars, ansi_trimws)
   28.                                       └─cli (local) FUN(X[[i]], ...)
  ── Error (test-rd-inherit.R:715:3): useful warnings if can't find topics ───────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-rd-r6.R:315:3): integration test ────────────────────────────────
  `res <- roclet_process(roc, blocks = blocks, env = env, base_path = test_path())` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-rd-r6.R:321:3): integration test ────────────────────────────────
  Error in `eval(code, test_env)`: object 'res' not found
  ── Error (test-rd-section.R:2:3): warn if forgotton colom ──────────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_snapshot_warning(...) at test-rd-section.R:2:2
    2. │ └─testthat:::expect_snapshot_condition(...)
    3. │   └─testthat:::capture_matching_condition(x, cnd_matcher(class))
    4. │     └─base::withCallingHandlers(...)
    5. └─roxygen2::roc_proc_text(rd_roclet(), "\n      #' Foo\n      #'\n      #' @section Haz dox\n      #' Here.\n      #' There\n      foo <- function(x = '%') x\n    ")
    6.   ├─roxygen2::roclet_process(roclet, blocks, env = env, base_path = ".")
    7.   └─roxygen2:::roclet_process.roclet_rd(...)
    8.     ├─roxygen2:::block_to_rd(block, base_path, env)
    9.     └─roxygen2:::block_to_rd.roxy_block(block, base_path, env)
   10.       ├─rd$add(roxy_tag_rd(tag, env = env, base_path = base_path))
   11.       │ └─base::inherits(x, "RoxyTopic")
   12.       ├─roxygen2::roxy_tag_rd(tag, env = env, base_path = base_path)
   13.       └─roxygen2:::roxy_tag_rd.roxy_tag_section(tag, env = env, base_path = base_path)
   14.         └─roxygen2::warn_roxy_tag(x, c("title spans multiple lines.", i = "Did you forget a colon (:) at the end of the title?"))
   15.           └─cli::cli_warn(message, ..., .envir = parent.frame())
   16.             ├─rlang::warn(...)
   17.             │ └─rlang:::validate_signal_args(...)
   18.             └─cli::format_warning(escaped_message, .envir = .envir)
   19.               └─cli:::fmt(...)
   20.                 └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   21.                   ├─base::do.call(app[[msg$type]], msg$args)
   22.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-657", class = NULL)
   23.                     └─cli:::clii_bullets(app, text, id, class)
   24.                       └─base::lapply(...)
   25.                         └─cli (local) FUN(X[[i]], ...)
   26.                           └─app$text(text[[i]])
   27.                             └─cli:::clii_text(app, text)
   28.                               └─app$xtext(text)
   29.                                 └─cli:::clii__xtext(...)
   30.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   31.                                     └─base::lapply(pars, ansi_trimws)
   32.                                       └─cli (local) FUN(X[[i]], ...)
  ── Error (test-rd-template.R:31:3): templates gives useful error if not found ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─testthat::expect_snapshot(...) at test-rd-template.R:31:2
    2.   └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    3.     ├─base::unlist(lapply(results, replay))
    4.     └─base::lapply(results, replay)
    5.       └─testthat (local) FUN(X[[i]], ...)
    6.         ├─testthat:::snapshot_replay(x, state, transform = transform, cnd_class = cnd_class)
    7.         └─testthat:::snapshot_replay.condition(...)
    8.           └─rlang::cnd_message(x, prefix = TRUE)
    9.             └─rlang:::cnd_message_format_prefixed(cnd, ..., parent = FALSE)
   10.               └─rlang:::cnd_message_format(cnd, ..., alert = alert)
   11.                 └─rlang (local) cli_format(glue_escape(lines))
   12.                   └─rlang:::.rlang_cli_format(x, cli::format_error)
   13.                     └─cli::cli_format(x, .envir = emptyenv())
   14.                       └─cli:::fmt(...)
   15.                         └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   16.                           ├─base::do.call(app[[msg$type]], msg$args)
   17.                           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-687", class = NULL)
   18.                             └─cli:::clii_bullets(app, text, id, class)
   19.                               └─base::lapply(...)
   20.                                 └─cli (local) FUN(X[[i]], ...)
   21.                                   └─app$text(text[[i]])
   22.                                     └─cli:::clii_text(app, text)
   23.                                       └─app$xtext(text)
   24.                                         └─cli:::clii__xtext(...)
   25.                                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   26.                                             └─base::lapply(pars, ansi_trimws)
   27.                                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-rd.R:40:3): documenting unknown function requires name ──────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_snapshot_warning(...) at test-rd.R:40:2
    2. │ └─testthat:::expect_snapshot_condition(...)
    3. │   └─testthat:::capture_matching_condition(x, cnd_matcher(class))
    4. │     └─base::withCallingHandlers(...)
    5. └─roxygen2::roc_proc_text(rd_roclet(), "\n      #' Virtual Class To Enforce Max Slot Length\n      setClass('A')\n\n      #' Validity function.\n      setValidity('A', function(object) TRUE)")
    6.   ├─roxygen2::roclet_process(roclet, blocks, env = env, base_path = ".")
    7.   └─roxygen2:::roclet_process.roclet_rd(...)
    8.     ├─roxygen2:::block_to_rd(block, base_path, env)
    9.     └─roxygen2:::block_to_rd.roxy_block(block, base_path, env)
   10.       └─roxygen2:::warn_roxy_block(...)
   11.         └─cli::cli_warn(message, ..., .envir = parent.frame())
   12.           ├─rlang::warn(...)
   13.           │ └─rlang:::validate_signal_args(...)
   14.           └─cli::format_warning(escaped_message, .envir = .envir)
   15.             └─cli:::fmt(...)
   16.               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   17.                 ├─base::do.call(app[[msg$type]], msg$args)
   18.                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-694", class = NULL)
   19.                   └─cli:::clii_bullets(app, text, id, class)
   20.                     └─base::lapply(...)
   21.                       └─cli (local) FUN(X[[i]], ...)
   22.                         └─app$text(text[[i]])
   23.                           └─cli:::clii_text(app, text)
   24.                             └─app$xtext(text)
   25.                               └─cli:::clii__xtext(...)
   26.                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   27.                                   └─base::lapply(pars, ansi_trimws)
   28.                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-rd.R:65:3): documenting NA gives useful error message (#194) ────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_snapshot_warning(...) at test-rd.R:65:2
    2. │ └─testthat:::expect_snapshot_condition(...)
    3. │   └─testthat:::capture_matching_condition(x, cnd_matcher(class))
    4. │     └─base::withCallingHandlers(...)
    5. └─roxygen2::roc_proc_text(rd_roclet(), "\n      #' Missing value\n      NA")
    6.   ├─roxygen2::roclet_process(roclet, blocks, env = env, base_path = ".")
    7.   └─roxygen2:::roclet_process.roclet_rd(...)
    8.     ├─roxygen2:::block_to_rd(block, base_path, env)
    9.     └─roxygen2:::block_to_rd.roxy_block(block, base_path, env)
   10.       └─roxygen2:::warn_roxy_block(...)
   11.         └─cli::cli_warn(message, ..., .envir = parent.frame())
   12.           ├─rlang::warn(...)
   13.           │ └─rlang:::validate_signal_args(...)
   14.           └─cli::format_warning(escaped_message, .envir = .envir)
   15.             └─cli:::fmt(...)
   16.               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   17.                 ├─base::do.call(app[[msg$type]], msg$args)
   18.                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-708", class = NULL)
   19.                   └─cli:::clii_bullets(app, text, id, class)
   20.                     └─base::lapply(...)
   21.                       └─cli (local) FUN(X[[i]], ...)
   22.                         └─app$text(text[[i]])
   23.                           └─cli:::clii_text(app, text)
   24.                             └─app$xtext(text)
   25.                               └─cli:::clii__xtext(...)
   26.                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   27.                                   └─base::lapply(pars, ansi_trimws)
   28.                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-rd.R:157:3): can generate nonASCII document ─────────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Failure (test-rd.R:164:3): can generate nonASCII document ───────────────────
  file.exists(rd_path) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error (test-rd.R:165:3): can generate nonASCII document ─────────────────────
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
      ▆
   1. └─roxygen2:::read_lines(rd_path) at test-rd.R:165:2
   2.   └─base::readLines(path, n = n, encoding = "UTF-8", warn = FALSE)
   3.     └─base::file(con, "r")
  ── Error (test-rd.R:174:3): unicode escapes are ok ─────────────────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Failure (test-rd.R:181:3): unicode escapes are ok ───────────────────────────
  file.exists(rd_path) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error (test-rd.R:182:3): unicode escapes are ok ─────────────────────────────
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
      ▆
   1. └─roxygen2:::read_lines(rd_path) at test-rd.R:182:2
   2.   └─base::readLines(path, n = n, encoding = "UTF-8", warn = FALSE)
   3.     └─base::file(con, "r")
  ── Error (test-rd.R:190:3): automatically deletes unused files ─────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(roxygenise()) at test-rd.R:190:2
    2. │ └─base::withCallingHandlers(...)
    3. └─roxygen2::roxygenise()
    4.   └─roxygen2 (local) load_code(base_path)
    5.     └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
    6.       └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
    7.         ├─rlang::inform(...)
    8.         │ └─message %||% ""
    9.         └─cli::format_message(message, .envir = .envir)
   10.           └─cli:::fmt(...)
   11.             └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   12.               ├─base::do.call(app[[msg$type]], msg$args)
   13.               └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-768", class = NULL)
   14.                 └─cli:::clii_bullets(app, text, id, class)
   15.                   └─base::lapply(...)
   16.                     └─cli (local) FUN(X[[i]], ...)
   17.                       └─app$text(text[[i]])
   18.                         └─cli:::clii_text(app, text)
   19.                           └─app$xtext(text)
   20.                             └─cli:::clii__xtext(...)
   21.                               └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   22.                                 └─base::lapply(pars, ansi_trimws)
   23.                                   └─cli (local) FUN(X[[i]], ...)
  ── Error (test-roxygenize-setup.R:4:3): useful error if no DESCRIPTION ─────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─testthat::expect_snapshot(roxygen_setup(), error = TRUE) at test-roxygenize-setup.R:4:2
    2.   └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    3.     ├─base::unlist(lapply(results, replay))
    4.     └─base::lapply(results, replay)
    5.       └─testthat (local) FUN(X[[i]], ...)
    6.         ├─testthat:::snapshot_replay(x, state, transform = transform, cnd_class = cnd_class)
    7.         └─testthat:::snapshot_replay.condition(...)
    8.           └─rlang::cnd_message(x, prefix = TRUE)
    9.             └─rlang:::cnd_message_format_prefixed(cnd, ..., parent = FALSE)
   10.               └─rlang:::cnd_message_format(cnd, ..., alert = alert)
   11.                 └─rlang (local) cli_format(glue_escape(lines))
   12.                   └─rlang:::.rlang_cli_format(x, cli::format_error)
   13.                     └─cli::cli_format(x, .envir = emptyenv())
   14.                       └─cli:::fmt(...)
   15.                         └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   16.                           ├─base::do.call(app[[msg$type]], msg$args)
   17.                           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-798", class = NULL)
   18.                             └─cli:::clii_bullets(app, text, id, class)
   19.                               └─base::lapply(...)
   20.                                 └─cli (local) FUN(X[[i]], ...)
   21.                                   └─app$text(text[[i]])
   22.                                     └─cli:::clii_text(app, text)
   23.                                       └─app$xtext(text)
   24.                                         └─cli:::clii__xtext(...)
   25.                                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   26.                                             └─base::lapply(pars, ansi_trimws)
   27.                                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-roxygenize-setup.R:17:3): warns about non UTF-8 encoding ────────
  `roxygen_setup(cur_version = "8.0.0")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-roxygenize-setup.R:24:3): warns if roxygen version is too new ───
  `roxygen_setup(cur_version = "8.0.0")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-select-args.R:4:3): warns on invalid input ──────────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-tag-parser.R:71:3): tag_words_line() gives useful warnings ──────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-topics.R:6:3): missing title generates useful message ───────────
  `roc_proc_text(rd_roclet(), block)` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  
  [ FAIL 33 | WARN 5 | SKIP 52 | PASS 749 ]
  Error: Test failures
  Execution halted