Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(attachment)
  > 
  > test_check("attachment")
  Loading required namespace: rstudioapi
  Updating dummypackage documentation
  ────────────────────────────────────────────────────────────────────────────────
  Changes in roxygen2 7.0.0:
  * `%` is now escaped automatically in Markdown mode.
  Please carefully check .Rd files for changes
  ────────────────────────────────────────────────────────────────────────────────
  Setting `RoxygenNote` to "7.2.0"
  Updating dummypackage documentation
  ────────────────────────────────────────────────────────────────────────────────
  Changes in roxygen2 7.0.0:
  * `%` is now escaped automatically in Markdown mode.
  Please carefully check .Rd files for changes
  ────────────────────────────────────────────────────────────────────────────────
  Setting `RoxygenNote` to "7.2.0"
  Installing packages into 'D:/temp/RtmpULIIFZ/RLIBS_1d26c406f4dea'
  (as 'lib' is unspecified)
  Installation of: tata, toto
  Installing packages into 'D:/temp/RtmpULIIFZ/RLIBS_1d26c406f4dea'
  (as 'lib' is unspecified)
  Updating extrapackage documentation
  ────────────────────────────────────────────────────────────────────────────────
  Changes in roxygen2 7.0.0:
  * `%` is now escaped automatically in Markdown mode.
  Please carefully check .Rd files for changes
  ────────────────────────────────────────────────────────────────────────────────
  Setting `RoxygenNote` to "7.2.0"
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 42 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-amend-description.R:8:1): (code run outside of `test_that()`) ───
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─attachment::att_amend_desc(path = dummypackage) at test-amend-description.R:8:0
    2.   ├─base::unique(c(imports, att_from_namespace(path.n, document = document)))
    3.   └─attachment::att_from_namespace(path.n, document = document)
    4.     ├─withr::with_dir(...)
    5.     │ └─base::force(code)
    6.     └─roxygen2::roxygenise(dirname(path), roclets = NULL)
    7.       └─roxygen2 (local) load_code(base_path)
    8.         └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
    9.           └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   10.             ├─rlang::inform(...)
   11.             │ └─message %||% ""
   12.             └─cli::format_message(message, .envir = .envir)
   13.               └─cli:::fmt(...)
   14.                 └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   15.                   ├─base::do.call(app[[msg$type]], msg$args)
   16.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-29", class = NULL)
   17.                     └─cli:::clii_bullets(app, text, id, class)
   18.                       └─base::lapply(...)
   19.                         └─cli (local) FUN(X[[i]], ...)
   20.                           └─app$text(text[[i]])
   21.                             └─cli:::clii_text(app, text)
   22.                               └─app$xtext(text)
   23.                                 └─cli:::clii__xtext(...)
   24.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   25.                                     └─base::lapply(pars, ansi_trimws)
   26.                                       └─cli (local) FUN(X[[i]], ...)
  ── Error (test-att_from_namespace.R:8:1): (code run outside of `test_that()`) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─attachment::att_from_namespace(...) at test-att_from_namespace.R:8:0
    2.   ├─withr::with_dir(...)
    3.   │ └─base::force(code)
    4.   └─roxygen2::roxygenise(dirname(path), roclets = NULL)
    5.     └─roxygen2 (local) load_code(base_path)
    6.       └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
    7.         └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
    8.           ├─rlang::inform(...)
    9.           │ └─message %||% ""
   10.           └─cli::format_message(message, .envir = .envir)
   11.             └─cli:::fmt(...)
   12.               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   13.                 ├─base::do.call(app[[msg$type]], msg$args)
   14.                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-57", class = NULL)
   15.                   └─cli:::clii_bullets(app, text, id, class)
   16.                     └─base::lapply(...)
   17.                       └─cli (local) FUN(X[[i]], ...)
   18.                         └─app$text(text[[i]])
   19.                           └─cli:::clii_text(app, text)
   20.                             └─app$xtext(text)
   21.                               └─cli:::clii__xtext(...)
   22.                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   23.                                   └─base::lapply(pars, ansi_trimws)
   24.                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-renv_create.R:34:1): (code run outside of `test_that()`) ────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─attachment::att_amend_desc(path = extrapackage) at test-renv_create.R:34:0
    2.   ├─base::unique(c(imports, att_from_namespace(path.n, document = document)))
    3.   └─attachment::att_from_namespace(path.n, document = document)
    4.     ├─withr::with_dir(...)
    5.     │ └─base::force(code)
    6.     └─roxygen2::roxygenise(dirname(path), roclets = NULL)
    7.       └─roxygen2 (local) load_code(base_path)
    8.         └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
    9.           └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   10.             ├─rlang::inform(...)
   11.             │ └─message %||% ""
   12.             └─cli::format_message(message, .envir = .envir)
   13.               └─cli:::fmt(...)
   14.                 └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   15.                   ├─base::do.call(app[[msg$type]], msg$args)
   16.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-85", class = NULL)
   17.                     └─cli:::clii_bullets(app, text, id, class)
   18.                       └─base::lapply(...)
   19.                         └─cli (local) FUN(X[[i]], ...)
   20.                           └─app$text(text[[i]])
   21.                             └─cli:::clii_text(app, text)
   22.                               └─app$xtext(text)
   23.                                 └─cli:::clii__xtext(...)
   24.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   25.                                     └─base::lapply(pars, ansi_trimws)
   26.                                       └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 42 ]
  Error: Test failures
  Execution halted