Running ‘testthat.R’ [1s/1s]
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("rotulador") # nolint unused_import_linter
  > 
  > test_check("rotulador")
  Saving _problems/test-render_code-10.R
  Saving _problems/test-render_code-57.R
  Saving _problems/test-render_code-115.R
  Saving _problems/test-render_code-169.R
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 34 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-render_code.R:10:9'): Rmd file is correct ──────────────────────
  Error in `generate_rmd_file(content = content, output_format = output_format, code = code, ...)`: Assertion on 'content' failed: Must be of type 'character', not 'NULL'.
  Backtrace:
      ▆
   1. ├─base::file.path(render_code(eval = FALSE), "template.Rmd") at test-render_code.R:10:9
   2. └─rotulador::render_code(eval = FALSE)
   3.   └─rotulador::generate_rmd_file(...)
   4.     └─checkmate::assert_character(content)
   5.       └─checkmate::makeAssertion(x, res, .var.name, add)
   6.         └─checkmate:::mstop(...)
  ── Error ('test-render_code.R:57:9'): Rmd file is correct ──────────────────────
  Error in `generate_rmd_file(content = content, output_format = output_format, code = code, ...)`: Assertion on 'content' failed: Must be of type 'character', not 'NULL'.
  Backtrace:
      ▆
   1. ├─base::file.path(render_code(eval = FALSE), "template.Rmd") at test-render_code.R:57:9
   2. └─rotulador::render_code(eval = FALSE)
   3.   └─rotulador::generate_rmd_file(...)
   4.     └─checkmate::assert_character(content)
   5.       └─checkmate::makeAssertion(x, res, .var.name, add)
   6.         └─checkmate:::mstop(...)
  ── Error ('test-render_code.R:115:9'): PDF Output file is correct ──────────────
  Error in `generate_rmd_file(content = content, output_format = output_format, code = code, ...)`: Assertion on 'content' failed: Must be of type 'character', not 'NULL'.
  Backtrace:
      ▆
   1. └─rotulador::render_code(output_format = "pdf_document") at test-render_code.R:115:9
   2.   └─rotulador::generate_rmd_file(...)
   3.     └─checkmate::assert_character(content)
   4.       └─checkmate::makeAssertion(x, res, .var.name, add)
   5.         └─checkmate:::mstop(...)
  ── Error ('test-render_code.R:166:9'): Other output file is correct ────────────
  Error in `generate_rmd_file(content = content, output_format = output_format, code = code, ...)`: Assertion on 'content' failed: Must be of type 'character', not 'NULL'.
  Backtrace:
      ▆
   1. ├─base::file.path(...) at test-render_code.R:166:9
   2. └─rotulador::render_code(output_format = "html_document")
   3.   └─rotulador::generate_rmd_file(...)
   4.     └─checkmate::assert_character(content)
   5.       └─checkmate::makeAssertion(x, res, .var.name, add)
   6.         └─checkmate:::mstop(...)
  
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 34 ]
  Error:
  ! Test failures.
  Execution halted