Skip to content

TBox

Useful Functions for Programming and Generating Documents

v0.2.2 · Apr 27, 2025 · MIT + file LICENSE

Description

Tools to help developers and producers manipulate R objects and outputs. It includes tools for displaying results and objects, and for formatting them in the correct format.

Downloads

429

Last 30 days

8824th

965

Last 90 days

2.6K

Last year

Trend: +12% (30d vs prior 30d)

CRAN Check Status

2 ERROR
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 ERROR
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 ERROR
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
ERROR r-devel-macos-arm64

tests

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("TBox") # nolint unused_import_linter
  > 
  > test_check("TBox")
  Saving _problems/test-render_code-9.R
  Saving _problems/test-render_code-49.R
  Saving _problems/test-render_code-93.R
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 34 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-render_code.R:9:13'): Rmd file is correct ──────────────────────
  Error in `generate_rmd_file(content = content, output_format = output_fo
...[truncated]...
 ▆
   1. ├─base::file.path(render_code(eval = FALSE), "template.Rmd") at test-render_code.R:49:13
   2. └─TBox::render_code(eval = FALSE)
   3.   └─TBox::generate_rmd_file(...)
   4.     └─checkmate::assert_character(content)
   5.       └─checkmate::makeAssertion(x, res, .var.name, add)
   6.         └─checkmate:::mstop(...)
  ── Error ('test-render_code.R:92:13'): 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:92:13
   2. └─TBox::render_code(output_format = "html_document")
   3.   └─TBox::generate_rmd_file(...)
   4.     └─checkmate::assert_character(content)
   5.       └─checkmate::makeAssertion(x, res, .var.name, add)
   6.         └─checkmate:::mstop(...)
  
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 34 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-oldrel-windows-x86_64

tests

Running 'testthat.R' [16s]
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 pandoc1383cd5a5307.docx --lua-filter "D:\RCompile\CRANpkg\lib\4.4\rmarkdown\rmarkdown\lua\pagebreak.lua" --highlight-style "D:/RCompile/CRANpkg/lib/4.4/rmarkdown/rmarkdown/highlight/arrow.the
...[truncated]...
 0 | SKIP 0 | PASS 41 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-render_code.R:103:13'): Output file is correct ─────────────────
  Error: LaTeX failed to compile D:/temp/2026_03_27_17_37_41_8496/RtmpADLvZe/render_code1383c32696fca/output.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See output.log for more info.
  Backtrace:
      ▆
   1. └─TBox::render_code(output_format = "pdf_document") at test-render_code.R:103:13
   2.   └─rmarkdown::render(...)
   3.     └─rmarkdown:::latexmk(...)
   4.       └─tinytex::latexmk(file, engine, if (biblatex) "biber" else "bibtex")
   5.         └─tinytex:::latexmk_emu(...)
   6.           └─tinytex (local) run_engine()
   7.             ├─tinytex:::system2_quiet(...)
   8.             └─tinytex (local) on_error()
   9.               └─tinytex:::show_latex_error(file, logfile)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 41 ]
  Error:
  ! Test failures.
  Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-macos-arm64

tests

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 te
...[truncated]...
ile(...)
   4.     └─checkmate::assert_character(content)
   5.       └─checkmate::makeAssertion(x, res, .var.name, add)
   6.         └─checkmate:::mstop(...)
  
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 34 ]
  Error:
  ! Test failures.
  Execution halted

Dependency Network

Dependencies Reverse dependencies checkmate clipr knitr rmarkdown TBox

Version History

new 0.2.2 Mar 10, 2026
updated 0.2.2 ← 0.1.2 diff Apr 26, 2025
updated 0.1.2 ← 0.1.0 diff Jun 13, 2024
new 0.1.0 Jun 6, 2024