Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library("testthat") # nolint unused_import_linter
  > library("TBox") # nolint unused_import_linter
  > 
  > test_check("TBox")
  
  
  processing file: template.Rmd
  output file: template.knit.md
  
  "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS template.knit.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandoce1c6fe97c52.docx --lua-filter "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\lua\pagebreak.lua" --highlight-style "D:/RCompile/CRANpkg/lib/4.6/rmarkdown/rmarkdown/highlight/arrow.theme" --reference-doc "D:\RCompile\CRANpkg\lib\4.6\TBox\extdata\template.docx" 
  
  Output created: D:/temp/2025_08_24_01_50_00_32600/RtmpieVM9Y/render_codee1c6db81a0e/output.docx
  
  
  processing file: template.Rmd
  output file: template.knit.md
  
  "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS template.knit.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandoce1c7cfa4599.docx --lua-filter "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\lua\pagebreak.lua" --highlight-style "D:/RCompile/CRANpkg/lib/4.6/rmarkdown/rmarkdown/highlight/arrow.theme" --reference-doc "D:\RCompile\CRANpkg\lib\4.6\TBox\extdata\template.docx" 
  
  Output created: D:/temp/2025_08_24_01_50_00_32600/RtmpieVM9Y/render_codee1c4b8bef/output.docx
  
  
  processing file: template.Rmd
  output file: template.knit.md
  
  "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS template.knit.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandoce1c199070ff.docx --lua-filter "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\lua\pagebreak.lua" --highlight-style "D:/RCompile/CRANpkg/lib/4.6/rmarkdown/rmarkdown/highlight/arrow.theme" --reference-doc "D:\RCompile\CRANpkg\lib\4.6\TBox\extdata\template.docx" 
  
  Output created: D:/temp/2025_08_24_01_50_00_32600/RtmpieVM9Y/render_codee1c517c3fac/output.docx
  
  
  processing file: template.Rmd
  output file: template.knit.md
  
  "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS template.knit.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandoce1c44024f1.docx --lua-filter "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\lua\pagebreak.lua" --highlight-style "D:/RCompile/CRANpkg/lib/4.6/rmarkdown/rmarkdown/highlight/arrow.theme" --reference-doc "D:\RCompile\CRANpkg\lib\4.6\TBox\extdata\template.docx" 
  
  Output created: D:/temp/2025_08_24_01_50_00_32600/RtmpieVM9Y/render_codee1c66342af8/output.docx
  
  
  processing file: template.Rmd
  output file: template.knit.md
  
  "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS template.knit.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandoce1c5ba7ee6.docx --lua-filter "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\lua\pagebreak.lua" --highlight-style "D:/RCompile/CRANpkg/lib/4.6/rmarkdown/rmarkdown/highlight/arrow.theme" --reference-doc "D:\RCompile\CRANpkg\lib\4.6\TBox\extdata\template.docx" 
  
  Output created: D:/temp/2025_08_24_01_50_00_32600/RtmpieVM9Y/render_codee1c2fbd7045/output.docx
  
  
  processing file: template.Rmd
  output file: template.knit.md
  
  "C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS template.knit.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandoce1c493d6f43.docx --lua-filter "D:\RCompile\CRANpkg\lib\4.6\rmarkdown\rmarkdown\lua\pagebreak.lua" --highlight-style "D:/RCompile/CRANpkg/lib/4.6/rmarkdown/rmarkdown/highlight/arrow.theme" --reference-doc "D:\RCompile\CRANpkg\lib\4.6\TBox\extdata\template.docx" 
  
  Output created: D:/temp/2025_08_24_01_50_00_32600/RtmpieVM9Y/render_codee1c314d1266/output.docx
  
  
  processing file: template.Rmd
  
  Quitting from template.Rmd:11-13 [unnamed-chunk-1]
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  <error/rlang_error>
  Error in `parse()`:
  ! <text>:1:9: unexpected symbol
  1: Bonjour les
              ^
  ---
  Backtrace:
       x
    1. +-base::file.path(...) at test-render_code.R:92:13
    2. \-TBox::render_code(output_format = "html_document")
    3.   \-rmarkdown::render(...)
    4.     \-knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    5.       \-knitr:::process_file(text, output)
    6.         +-xfun:::handle_error(...)
    7.         +-base::withCallingHandlers(...)
    8.         \-knitr:::process_group(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::parse_all(input, filename = filename)
   17.                     \-evaluate:::parse_all.character(input, filename = filename)
   18.                       \-base::parse(text = x, srcfile = src)
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  [ FAIL 4 | WARN 3 | SKIP 0 | PASS 37 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-render_code.R:14:13'): Rmd file is correct ───────────────────
  `rmd_content` (`actual`) not identical to `written_content` (`expected`).
  
  actual[9:13] vs expected[9:113]
    "## Running Code"
    ""
    "```{r, eval = FALSE}"
  - "plot(AirPassengers)"
  + ""
  + "<p class='character'>"
  + "</p>"
  + ""
  + "<br><li>Call:<font class='call'> lm(formula = rating ~ ., data = attitude)</font>"
  + ""
  + "<br><li>  Residuals<br>"
  and 95 more ...
  ── Failure ('test-render_code.R:36:13'): Rmd file is correct ───────────────────
  `rmd_content` (`actual`) not identical to `written_content` (`expected`).
  
  `actual[9:13]`:   "## Running Code" "" "" "Bonjour les amis" ""
  `expected[9:13]`: "## Running Code" "" "" ""                 ""
  ── Failure ('test-render_code.R:54:13'): Rmd file is correct ───────────────────
  `rmd_content` (`actual`) not identical to `written_content` (`expected`).
  
       actual                 | expected                   
   [9] "## Running Code"      | "## Running Code"      [9] 
  [10] ""                     | ""                     [10]
  [11] "```{r, eval = FALSE}" | "```{r, eval = FALSE}" [11]
  [12] "plot(AirPassengers)"  - ""                     [12]
  [13] "```"                  | "```"                  [13]
  ── Error ('test-render_code.R:92:13'): Output file is correct ──────────────────
  Error in `parse(text = x, srcfile = src)`: <text>:1:9: unexpected symbol
  1: Bonjour les
              ^
  Backtrace:
       ▆
    1. ├─base::file.path(...) at test-render_code.R:92:13
    2. └─TBox::render_code(output_format = "html_document")
    3.   └─rmarkdown::render(...)
    4.     └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    5.       └─knitr:::process_file(text, output)
    6.         ├─xfun:::handle_error(...)
    7.         ├─base::withCallingHandlers(...)
    8.         └─knitr:::process_group(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::parse_all(input, filename = filename)
   17.                     └─evaluate:::parse_all.character(input, filename = filename)
   18.                       └─base::parse(text = x, srcfile = src)
  
  [ FAIL 4 | WARN 3 | SKIP 0 | PASS 37 ]
  Error: Test failures
  Execution halted