Running ‘testthat.R’ [21s/44s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(fusen)
  > 
  > test_check("fusen")
  [1] "==== add_flat_template ===="
  Created file .here in /home/hornik/tmp/scratch/RtmpTzUG3M/add.flat.template1549fc5cdd2952 . Please start a new R session in the new project directory.
  '0-dev_history.Rmd' already exists. It was not overwritten. Set `add_flat_template(overwrite = TRUE)` if you want to do so.
  File .here already exists in /home/hornik/tmp/scratch/RtmpTzUG3M/add.flat.template1549fc5cdd2952
  Created file .here in /home/hornik/tmp/scratch/RtmpTzUG3M/dev.history.template1549fc5dd8375b . Please start a new R session in the new project directory.
  v Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/dev.history.template1549fc5dd8375b'
  v Setting License field in DESCRIPTION to 'MIT + file LICENSE'
  v Writing 'LICENSE'
  v Writing 'LICENSE.md'
  v Adding '^LICENSE\\.md$' to '.Rbuildignore'
  v Setting active project to '<no active project>'
  Created file .here in /home/hornik/tmp/scratch/RtmpTzUG3M/dev.history.template.uu1549fc19f1e497 . Please start a new R session in the new project directory.
  v Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/dev.history.template.uu1549fc19f1e497'
  v Writing 'LICENSE.md'
  v Adding '^LICENSE\\.md$' to '.Rbuildignore'
  v Setting active project to '<no active project>'
  Created file .here in /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d . Please start a new R session in the new project directory.
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  Quitting from lines 43-61 (flat_full.Rmd) 
  -- Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/chunk.export.1549
  v Creating '/home/hornik/tmp/scratch/RtmpTzUG3M/chunk.export.1549fc234151f2/foosen/'
  v Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/chunk.export.1549fc234151f2/foosen'
  v Creating 'R/'
  v Writing a sentinel file '.here'
  * Build robust paths within your project via `here::here()`
  * Learn more at <https://here.r-lib.org>
  v Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  v New directory created: /home/hornik/tmp/scratch/RtmpTzUG3M/chunk.export.1549fc234151f2/foosen
  -- Adding dev/flat_minimal.Rmd -------------------------------------------------
  File .here already exists in /home/hornik/tmp/scratch/RtmpTzUG3M/chunk.export.1549fc234151f2/foosen
  v Added /home/hornik/tmp/scratch/RtmpTzUG3M/chunk.export.1549fc234151f2/foosen/dev/flat_minimal.Rmd, /home/hornik/tmp/scratch/RtmpTzUG3M/chunk.export.1549fc234151f2/foosen/dev/0-dev_history.Rmd
  [1] "test without interactive"
  -- Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/chunk.noRd.1549fc
  v Creating '/home/hornik/tmp/scratch/RtmpTzUG3M/chunk.noRd.1549fc55121a61/foosen/'
  v Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/chunk.noRd.1549fc55121a61/foosen'
  v Creating 'R/'
  v Writing a sentinel file '.here'
  * Build robust paths within your project via `here::here()`
  * Learn more at <https://here.r-lib.org>
  v Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  v New directory created: /home/hornik/tmp/scratch/RtmpTzUG3M/chunk.noRd.1549fc55121a61/foosen
  -- Adding dev/flat_minimal.Rmd -------------------------------------------------
  File .here already exists in /home/hornik/tmp/scratch/RtmpTzUG3M/chunk.noRd.1549fc55121a61/foosen
  v Added /home/hornik/tmp/scratch/RtmpTzUG3M/chunk.noRd.1549fc55121a61/foosen/dev/flat_minimal.Rmd, /home/hornik/tmp/scratch/RtmpTzUG3M/chunk.noRd.1549fc55121a61/foosen/dev/0-dev_history.Rmd
  [1] "test without interactive"
  -- Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/dummy1549fc61c717
  -- Adding dev/flat_full.Rmd ----------------------------------------------------
  ! The path: /home/hornik/tmp/scratch/RtmpTzUG3M/dummy1549fc61c7170b/foosen already exists.
  x Aborting fusen project creation. Set `create_fusen(overwrite = TRUE)` to avoid a stop.
  ! The path: /home/hornik/tmp/scratch/RtmpTzUG3M/dummy1549fc61c7170b/foosen already exists.
  -- Adding dev/flat_full.Rmd ----------------------------------------------------
  File .here already exists in /home/hornik/tmp/scratch/RtmpTzUG3M/dummy1549fc61c7170b/foosen
  v Added /home/hornik/tmp/scratch/RtmpTzUG3M/dummy1549fc61c7170b/foosen/dev/flat_full.Rmd, /home/hornik/tmp/scratch/RtmpTzUG3M/dummy1549fc61c7170b/foosen/dev/0-dev_history.Rmd
  -- Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/subdir/subdir2/du
  -- Adding dev/flat_full.Rmd ----------------------------------------------------
  -- Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/dummygui1549fc599
  -- Adding dev/flat_teaching.Rmd ------------------------------------------------
  -- Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/dummy1549fc5b2933
  -- Initializing git repository -------------------------------------------------
  -- Adding dev/flat_full.Rmd ----------------------------------------------------
  -- Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/dummy1549fc452944
  -- Adding dev/flat_full.Rmd ----------------------------------------------------
  -- Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/dummygui1549fc590
  -- Initializing git repository -------------------------------------------------
  -- Adding dev/flat_teaching.Rmd ------------------------------------------------
  -- Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/dummygui1549fc1e4
  -- Adding dev/flat_teaching.Rmd ------------------------------------------------
  ! Title was modified to 'Title Case'.
  [1] "==== inflate-part1 ===="
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/inflate.tests1549fc745b2bf6'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  Created file .here in /home/hornik/tmp/scratch/RtmpTzUG3M/nordpackage1549fc35c1c466 . Please start a new R session in the new project directory.
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/nordpackage1549fc35c1c466'
  ✔ Setting License field in DESCRIPTION to 'MIT + file LICENSE'
  ✔ Writing 'LICENSE'
  ✔ Writing 'LICENSE.md'
  ✔ Adding '^LICENSE\\.md$' to '.Rbuildignore'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ── Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inf
  ✔ Creating '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/full/'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/full'
  ✔ Creating 'R/'
  ✔ Writing a sentinel file '.here'
  • Build robust paths within your project via `here::here()`
  • Learn more at <https://here.r-lib.org>
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ✔ New directory created: /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/full
  ── Adding dev/flat_full.Rmd ────────────────────────────────────────────────────
  File .here already exists in /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/full
  ✔ Added /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/full/dev/flat_full.Rmd, /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/full/dev/0-dev_history.Rmd
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/full'
  ✔ Setting License field in DESCRIPTION to 'GPL (>= 3)'
  ✔ Writing 'LICENSE.md'
  ✔ Adding '^LICENSE\\.md$' to '.Rbuildignore'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ── Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inf
  ✔ Creating '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/teaching/'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/teaching'
  ✔ Creating 'R/'
  ✔ Writing a sentinel file '.here'
  • Build robust paths within your project via `here::here()`
  • Learn more at <https://here.r-lib.org>
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ✔ New directory created: /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/teaching
  ── Adding dev/flat_teaching.Rmd ────────────────────────────────────────────────
  File .here already exists in /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/teaching
  ✔ Added /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/teaching/dev/flat_teaching.Rmd
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/teaching'
  ✔ Setting License field in DESCRIPTION to 'GPL (>= 3)'
  ✔ Writing 'LICENSE.md'
  ✔ Adding '^LICENSE\\.md$' to '.Rbuildignore'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ── Creating new directory: /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inf
  ✔ Creating '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/minimal/'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/minimal'
  ✔ Creating 'R/'
  ✔ Writing a sentinel file '.here'
  • Build robust paths within your project via `here::here()`
  • Learn more at <https://here.r-lib.org>
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ✔ New directory created: /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/minimal
  ── Adding dev/flat_minimal.Rmd ─────────────────────────────────────────────────
  File .here already exists in /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/minimal
  ✔ Added /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/minimal/dev/flat_minimal.Rmd, /home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/minimal/dev/0-dev_history.Rmd
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.inflate1549fc6116f8d2/minimal'
  ✔ Setting License field in DESCRIPTION to 'GPL (>= 3)'
  ✔ Writing 'LICENSE.md'
  ✔ Adding '^LICENSE\\.md$' to '.Rbuildignore'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/dataset1549fc5c4a69bb'
  v Adding 'R' to Depends field in DESCRIPTION
  v Creating 'data/'
  v Setting LazyData to 'true' in 'DESCRIPTION'
  v Saving 'nyc_squirrels' to 'data/nyc_squirrels.rda'
  * Document your data (see 'https://r-pkgs.org/data.html')
  v Setting License field in DESCRIPTION to 'GPL (>= 3)'
  v Writing 'LICENSE.md'
  v Adding '^LICENSE\\.md$' to '.Rbuildignore'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/empty.chunks1549fc5e55162a'
  ✔ Setting License field in DESCRIPTION to 'GPL (>= 3)'
  ✔ Writing 'LICENSE.md'
  ✔ Adding '^LICENSE\\.md$' to '.Rbuildignore'
  ✔ Adding 'R' to Depends field in DESCRIPTION
  ✔ Creating 'data/'
  ✔ Setting LazyData to 'true' in 'DESCRIPTION'
  ✔ Saving 'cars' to 'data/cars.rda'
  • Document your data (see 'https://r-pkgs.org/data.html')
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/r6class1549fc630efe61'
  ✔ Setting License field in DESCRIPTION to 'GPL (>= 3)'
  ✔ Writing 'LICENSE.md'
  ✔ Adding '^LICENSE\\.md$' to '.Rbuildignore'
  ✔ Adding 'R' to Depends field in DESCRIPTION
  ✔ Creating 'data/'
  ✔ Setting LazyData to 'true' in 'DESCRIPTION'
  ✔ Saving 'cars' to 'data/cars.rda'
  • Document your data (see 'https://r-pkgs.org/data.html')
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  v Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/inflate.deprecated1549fc5bb88f12'
  v Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/inflate.no.vignette1549fc5d9be65e'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/inflate.twofuns1549fc5f6b0a5c'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  [1] "==== inflate_utils ===="
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/isrproj.pkg1549fc5e8da771'
  ✔ Adding '^isrproj\\.pkg1549fc5e8da771\\.Rproj$' to '.Rbuildignore'
  ✔ Adding '^\\.Rproj\\.user$' to '.Rbuildignore'
  ✔ Setting active project to '/home/hornik/tmp/scratch/RtmpTzUG3M/all.templates.knit1549fc378c68d'
  [ FAIL 19 | WARN 5 | SKIP 5 | PASS 104 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (4)
  • interactive() is not TRUE (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-add_flat_template.R:187:3): (code run outside of `test_that()`) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─withr::with_dir(...) at test-add_flat_template.R:187:2
    2. │ └─base::force(code)
    3. └─rmarkdown::render(...) at test-add_flat_template.R:192:6
    4.   └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    5.     └─knitr:::process_file(text, output)
    6.       ├─base::withCallingHandlers(...)
    7.       ├─knitr:::process_group(group)
    8.       └─knitr:::process_group.block(group)
    9.         └─knitr:::call_block(x)
   10.           └─knitr:::block_exec(params)
   11.             └─knitr:::eng_r(options)
   12.               ├─knitr:::in_input_dir(...)
   13.               │ └─knitr:::in_dir(input_dir(), expr)
   14.               └─knitr (local) evaluate(...)
   15.                 └─evaluate::evaluate(...)
   16.                   └─evaluate:::evaluate_call(...)
   17.                     ├─evaluate (local) timing_fn(...)
   18.                     ├─base (local) handle(...)
   19.                     ├─base::withCallingHandlers(...)
   20.                     ├─base::withVisible(...)
   21.                     └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers)
   22.                       └─base::eval(expr, envir, enclos)
   23.                         └─base::eval(expr, envir, enclos)
   24.                           └─pkgload::load_all(path = here::here(), export_all = FALSE)
   25.                             └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   26.                               ├─rlang::inform(...)
   27.                               │ └─message %||% ""
   28.                               └─cli::format_message(message, .envir = .envir)
   29.                                 └─cli:::fmt(...)
   30.                                   └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   31.                                     ├─base::do.call(app[[msg$type]], msg$args)
   32.                                     └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-9", class = NULL)
   33.                                       └─cli:::clii_bullets(app, text, id, class)
   34.                                         └─base::lapply(...)
   35.                                           └─cli (local) FUN(X[[i]], ...)
   36.                                             └─app$text(text[[i]])
   37.                                               └─cli:::clii_text(app, text)
   38.                                                 └─app$xtext(text)
   39.                                                   └─cli:::clii__xtext(...)
   40.                                                     └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   41.                                                       └─base::lapply(pars, ansi_trimws)
   42.                                                         └─cli (local) FUN(X[[i]], ...)
  ── Error (test-inflate-part1.R:12:1): (code run outside of `test_that()`) ──────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─usethis::with_project(...) at test-inflate-part1.R:12:0
    2. │ └─base::force(code)
    3. ├─base::suppressMessages(...) at test-inflate-part1.R:21:2
    4. │ └─base::withCallingHandlers(...)
    5. └─fusen::inflate(...)
    6.   └─roxygen2::roxygenise(pkg)
    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-2553110-46", 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]], ...)
  ── Failure (test-inflate-part2.R:22:5): Deal with noRd but examples ────────────
  `suppressMessages(...)` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-inflate-part2.R:22:4
    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. ├─base::suppressMessages(...)
    8. │ └─base::withCallingHandlers(...)
    9. └─fusen::inflate(...)
   10.   └─roxygen2::roxygenise(pkg)
   11.     └─roxygen2 (local) load_code(base_path)
   12.       └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
   13.         └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   14.           ├─rlang::inform(...)
   15.           │ └─message %||% ""
   16.           └─cli::format_message(message, .envir = .envir)
   17.             └─cli:::fmt(...)
   18.               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   19.                 ├─base::do.call(app[[msg$type]], msg$args)
   20.                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-53", class = NULL)
   21.                   └─cli:::clii_bullets(app, text, id, class)
   22.                     └─base::lapply(...)
   23.                       └─cli (local) FUN(X[[i]], ...)
   24.                         └─app$text(text[[i]])
   25.                           └─cli:::clii_text(app, text)
   26.                             └─app$xtext(text)
   27.                               └─cli:::clii__xtext(...)
   28.                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   29.                                   └─base::lapply(pars, ansi_trimws)
   30.                                     └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-inflate-part2.R:33:5): Deal with noRd but examples ────────────
  length(list.files(file.path(dummypackage, "R"))) (`actual`) not equal to 1 (`expected`).
  
    `actual`: 0
  `expected`: 1
  ── Failure (test-inflate-part2.R:34:5): Deal with noRd but examples ────────────
  file.exists(file.path(dummypackage, "R", "my_norox2.R")) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test-inflate-part2.R:35:5): Deal with noRd but examples ────────────
  file.exists(file.path(dummypackage, "vignettes", "get-started.Rmd")) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test-inflate-part2.R:255:5): included data can be read ─────────────
  `suppressMessages(eval(parse(text = to_inflate)))` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. └─fusen::inflate(...)
    2.   └─roxygen2::roxygenise(pkg)
    3.     └─roxygen2 (local) load_code(base_path)
    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-66", 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-inflate-part2.R:267:5): included data can be read ───────────────
  Error in `dir(path, pattern = "^tests")`: translating strings with "bytes" encoding is not allowed
  Backtrace:
      ▆
   1. └─rcmdcheck::rcmdcheck(dummypackage, quiet = TRUE, args = c("--no-manual")) at test-inflate-part2.R:267:4
   2.   └─rcmdcheck:::new_rcmdcheck(...)
   3.     ├─base::structure(...)
   4.     ├─test_fail %||% get_test_fail(checkdir)
   5.     └─rcmdcheck:::get_test_fail(checkdir)
   6.       └─rcmdcheck:::get_test_output(...)
   7.         ├─base::file.path(path, dir(path, pattern = "^tests"))
   8.         └─base::dir(path, pattern = "^tests")
  ── Failure (test-inflate-part2.R:311:5): inflate() output no error ─────────────
  `suppressMessages(...)` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-inflate-part2.R:311:4
    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. ├─base::suppressMessages(...)
    8. │ └─base::withCallingHandlers(...)
    9. └─fusen::inflate(...)
   10.   └─roxygen2::roxygenise(pkg)
   11.     └─roxygen2 (local) load_code(base_path)
   12.       └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
   13.         └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   14.           ├─rlang::inform(...)
   15.           │ └─message %||% ""
   16.           └─cli::format_message(message, .envir = .envir)
   17.             └─cli:::fmt(...)
   18.               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   19.                 ├─base::do.call(app[[msg$type]], msg$args)
   20.                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-73", class = NULL)
   21.                   └─cli:::clii_bullets(app, text, id, class)
   22.                     └─base::lapply(...)
   23.                       └─cli (local) FUN(X[[i]], ...)
   24.                         └─app$text(text[[i]])
   25.                           └─cli:::clii_text(app, text)
   26.                             └─app$xtext(text)
   27.                               └─cli:::clii__xtext(...)
   28.                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   29.                                   └─base::lapply(pars, ansi_trimws)
   30.                                     └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-inflate-part2.R:323:5): inflate() output no error ─────────────
  list.files(file.path(dummypackage, "R")) (`actual`) not equal to c("my-data-doc.R", "my-pkg-doc.R", "onload.R") (`expected`).
  
  `actual`:                                            
  `expected`: "my-data-doc.R" "my-pkg-doc.R" "onload.R"
  ── Failure (test-inflate-part2.R:328:5): inflate() output no error ─────────────
  file.exists(pkgdoc) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error (test-inflate-part2.R:329:5): inflate() output no error ───────────────
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
      ▆
   1. └─base::readLines(pkgdoc) at test-inflate-part2.R:329:4
   2.   └─base::file(con, "r")
  ── Failure (test-inflate-part2.R:430:5): inflate() output no error with R6 ─────
  `suppressMessages(...)` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-inflate-part2.R:430:4
    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. ├─base::suppressMessages(...)
    8. │ └─base::withCallingHandlers(...)
    9. └─fusen::inflate(...)
   10.   └─roxygen2::roxygenise(pkg)
   11.     └─roxygen2 (local) load_code(base_path)
   12.       └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
   13.         └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   14.           ├─rlang::inform(...)
   15.           │ └─message %||% ""
   16.           └─cli::format_message(message, .envir = .envir)
   17.             └─cli:::fmt(...)
   18.               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   19.                 ├─base::do.call(app[[msg$type]], msg$args)
   20.                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-80", class = NULL)
   21.                   └─cli:::clii_bullets(app, text, id, class)
   22.                     └─base::lapply(...)
   23.                       └─cli (local) FUN(X[[i]], ...)
   24.                         └─app$text(text[[i]])
   25.                           └─cli:::clii_text(app, text)
   26.                             └─app$xtext(text)
   27.                               └─cli:::clii__xtext(...)
   28.                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   29.                                   └─base::lapply(pars, ansi_trimws)
   30.                                     └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-inflate-part2.R:444:5): inflate() output no error with R6 ─────
  file.exists(r6doc) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error (test-inflate-part2.R:445:5): inflate() output no error with R6 ───────
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
      ▆
   1. └─base::readLines(r6doc) at test-inflate-part2.R:445:4
   2.   └─base::file(con, "r")
  ── Error (test-inflate-part2.R:470:3): rmd and name are deprecated works ───────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─usethis::with_project(...) at test-inflate-part2.R:470:2
    2. │ └─base::force(code)
    3. ├─testthat::expect_warning(...) at test-inflate-part2.R:471:4
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─fusen::inflate(...)
   10.   └─roxygen2::roxygenise(pkg)
   11.     └─roxygen2 (local) load_code(base_path)
   12.       └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
   13.         └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   14.           ├─rlang::inform(...)
   15.           │ └─message %||% ""
   16.           └─cli::format_message(message, .envir = .envir)
   17.             └─cli:::fmt(...)
   18.               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   19.                 ├─base::do.call(app[[msg$type]], msg$args)
   20.                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-87", class = NULL)
   21.                   └─cli:::clii_bullets(app, text, id, class)
   22.                     └─base::lapply(...)
   23.                       └─cli (local) FUN(X[[i]], ...)
   24.                         └─app$text(text[[i]])
   25.                           └─cli:::clii_text(app, text)
   26.                             └─app$xtext(text)
   27.                               └─cli:::clii__xtext(...)
   28.                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   29.                                   └─base::lapply(pars, ansi_trimws)
   30.                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-inflate-part2.R:508:5): inflate() worked correctly ──────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-inflate-part2.R:508:4
    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. └─fusen::inflate(...)
    8.   └─roxygen2::roxygenise(pkg)
    9.     └─roxygen2 (local) load_code(base_path)
   10.       └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
   11.         └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   12.           ├─rlang::inform(...)
   13.           │ └─message %||% ""
   14.           └─cli::format_message(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-94", 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-inflate-part2.R:564:1): (code run outside of `test_that()`) ─────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─usethis::with_project(...) at test-inflate-part2.R:564:0
    2. │ └─base::force(code)
    3. ├─base::suppressMessages(...) at test-inflate-part2.R:572:2
    4. │ └─base::withCallingHandlers(...)
    5. └─fusen::inflate(...)
    6.   └─roxygen2::roxygenise(pkg)
    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-2553110-101", 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-inflate_utils.R:36:1): (code run outside of `test_that()`) ──────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─usethis::with_project(...) at test-inflate_utils.R:36:0
    2. │ └─base::force(code)
    3. ├─usethis::with_project(...) at test-inflate_utils.R:48:2
    4. │ └─base::force(code)
    5. └─fusen::inflate(...) at test-inflate_utils.R:49:4
    6.   └─roxygen2::roxygenise(pkg)
    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-2553110-108", 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 19 | WARN 5 | SKIP 5 | PASS 104 ]
  Error: Test failures
  Execution halted