Skip to content

unitizer

Interactive R Unit Tests

v1.4.23 · Oct 22, 2025 · GPL-2 | GPL-3

Description

Simplifies regression tests by comparing objects produced by test code with earlier versions of those same objects. If objects are unchanged the tests pass, otherwise execution stops with error details. If in interactive mode, tests can be reviewed through the provided interactive environment.

Downloads

2.3K

Last 30 days

2668th

2.3K

Last 90 days

2.3K

Last year

CRAN Check Status

1 ERROR
13 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 OK
r-devel-windows-x86_64 ERROR
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
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 (14 non-OK)
OK 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

tests

  Running 't-browser.R' [1s]
  Comparing 't-browser.Rout' to 't-browser.Rout.save' ... OK
  Running 't-capture.R' [1s]
  Comparing 't-capture.Rout' to 't-capture.Rout.save' ... OK
  Running 't-change.R' [1s]
  Comparing 't-change.Rout' to 't-change.Rout.save' ... OK
  Running 't-demo.R' [1s]
  Running 't-error.R' [1s]
  Comparing 't-error.Rout' to 't-error.Rout.save' ... OK
  Running 't-exec.R' [1s]
  Comparing 't-exec.Rout' to 't-exec.Rout.save' ... OK
  Running 't-get.R' [2s]
  Comparing 't-get.Rout' to 't-get.Rout.save' ... OK
  Running 't-global.R' [1s]
  Comparing 't-global.Rout' to 't-global.Rout.save' ... OK
  Running 't-handledruns.R' [2s]
  Comparing 't-handledruns.Rout' to 't-handledruns.Rout.save' ... OK
  Running 't-ischecks.R' [1s]
  Comparing 't-ischecks.Rout' to 't-ischecks.Rout.save' ... OK
  Running 't-item.R' [2s]
  Comparing 't-item.Rout' to 't-item.Rout.save' ... OK
  Running 't-list.R' [1s]
  Comparing 't-list.Rout' to 't-list.Rout.save' ... OK
  Running 't-misc.R' [1s]
  Comparing 't-misc.Rout' to 't-misc.Rout.save' ... OK
  Running 't-nav.R' [4s]
  Comparing 't-nav.Rout' to 't-nav.Rout.save' ... OK
  Running 't-parse.R' [1s]
  Comparing 't-parse.Rout' to 't-parse.Rout.save' ... OK
  Running 't-prompt.R' [1s]
  Comparing 't-prompt.Rout' to 't-prompt.Rout.save' ... OK
  Running 't-random.R' [2s]
  Comparing 't-random.Rout' to 't-random.Rout.save' ... OK
  Running 't-rename.R' [1s]
  Comparing 't-rename.Rout' to 't-rename.Rout.save' ... OK
  Running 't-repairenvs.R' [1s]
  Comparing 't-repairenvs.Rout' to 't-repairenvs.Rout.save' ... OK
  Running 't-search.R' [1s]
  Running 't-section.R' [1s]
  Comparing 't-section.Rout' to 't-section.Rout.save' ... OK
  Running 't-shim.R' [1s]
  Running 't-state.R' [1s]
  Comparing 't-state.Rout' to 't-state.Rout.save' ... OK
  Running 't-text.R' [1s]
  Comparing 't-text.Rout' to 't-text.Rout.save' ... OK
  Running 't-translate.R' [3s]
  Comparing 't-translate.Rout' to 't-translate.Rout.save' ... OK
  Running 't-upgrade.R' [4s]
  Comparing 't-upgrade.Rout' to 't-upgrade.Rout.save' ... OK
  Running 't-utz1.R' [1s]
  Running 't-utz2.R' [1s]
  Running 'zz-check.R' [0s]
Running the tests in 'tests/t-demo.R' failed.
Complete output:
  > source(file.path("aammrtf", "mock.R"))
  > source(file.path("_helper", "init.R"))
  > source(file.path("_helper", "pkgs.R"))
  Install Packages
  Error in install.packages(pkg, repos = NULL, type = "src", lib = TMP.LIB,  : 
    cannot install binary packages from other operating systems on Windows
  Error in inst_pak(PKG.DIRS) : install error
  Execution halted
  Error in find.package(pkgs, lib) : 
    there are no packages called 'unitizerdummypkg1', 'unitizerdummypkg2', 'utzflm'
Running the tests in 'tests/t-search.R' failed.
Complete output:
  > source(file.path("_helper", "init.R"))
  > source(file.path("_helper", "pkgs.R"))
  Install Packages
  Error in install.packages(pkg, repos = NULL, type = "src", lib = TMP.LIB,  : 
    cannot install binary packages from other operating systems on Windows
  Error in inst_pak(PKG.DIRS) : install error
  Execution halted
  Error in find.package(pkgs, lib) : 
    there are no packages called 'unitizerdummypkg1', 'unitizerdummypkg2', 'utzflm'
Running the tests in 'tests/t-shim.R' failed.
Complete output:
  > source(file.path("aammrtf", "mock.R"))
  > source(file.path("_helper", "init.R"))
  > source(file.path("_helper", "pkgs.R"))
  Install Packages
  Error in install.packages(pkg, repos = NULL, type = "src", lib = TMP.LIB,  : 
    cannot install binary packages from other operating systems on Windows
  Error in inst_pak(PKG.DIRS) : install error
  Execution halted
  Error in find.package(pkgs, lib) : 
    there are no packages called 'unitizerdummypkg1', 'unitizerdummypkg2', 'utzflm'
Running the tests in 'tests/t-utz1.R' failed.
Complete output:
  > # - "No Attach Test" -----------------------------------------------------------
  > 
  > f <- paste0(tempfile(), ".R")
  > writeLines("1 + 1", f)
  > try(unitizer::unitize(f))
  
  Error in unitize_core(test.file.inf, list(store.id.inf), state = state,  : 
    `unitizer` package must be attached to the search path, e.g. with `library(unitizer)`
  > unlink(f)
  > 
  > # - "Usual Setup" --------------------------------------------------------------
  > 
  > source(file.path("_helper", "init.R"))
  > source(file.path("aammrtf", "ref.R")); make_ref_obj_funs("refobjs")
  > source(file.path("_helper", "pkgs.R"))
  Install Packages
  Error in install.packages(pkg, repos = NULL, type = "src", lib = TMP.LIB,  : 
    cannot install binary packages from other operating systems on Windows
  Error in inst_pak(PKG.DIRS) : install error
  Execution halted
  Error in find.package(pkgs, lib) : 
    there are no packages called 'unitizerdummypkg1', 'unitizerdummypkg2', 'utzflm'
Running the tests in 'tests/t-utz2.R' failed.
Complete output:
  > # Overflow tests from testthat.unitize.R
  > 
  > source(file.path("_helper", "init.R"))
  > source(file.path("_helper", "pkgs.R"))
  Install Packages
  Error in install.packages(pkg, repos = NULL, type = "src", lib = TMP.LIB,  : 
    cannot install binary packages from other operating systems on Windows
  Error in inst_pak(PKG.DIRS) : install error
  Execution halted
  Error in find.package(pkgs, lib) : 
    there are no packages called 'unitizerdummypkg1', 'unitizerdummypkg2', 'utzflm'
Running the tests in 'tests/zz-check.R' failed.
Complete output:
  > source('aammrtf/check.R')
  43: > lorem1 <- "Today, with Kiernan on the stand offering confirmation, Howard walked the jury through the enormous amount of data pulled from Ulbricht's computer. Defense lawyers haven't had a chance yet to respond to this evidence<e2><80><94>that will likely come tomorrow. The mountain they have to climb looks higher than ever, though. Last week, Ulbricht's lawyer outlined a defense in which Ulbricht walked away from the marketplace he created and was \"lured back.\" But what will explain the dozens of folders of data on this laptop, with data from the upper echelons of Silk Road management<e2><80><94>mixed with the most intimate details of Ulbricht's personal life?"
  
  
  
  
  
  
  
  
  
  
  
  
  
  Error: .Rout files missing (failed?):
  't-demo.Rout', 't-search.Rout', 't-shim.Rout', 't-utz1.Rout', 't-utz2.Rout'
  In addition: Warning message:
  In eval(ei, envir) : Some outputs contain non-ASCII:
  't-text.Rout'
  Execution halted
OK r-oldrel-macos-arm64

*


            
OK r-oldrel-macos-x86_64

*


            
OK r-oldrel-windows-x86_64

*


            
OK 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

*


            

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-windows-x86_64

tests

  Running 't-browser.R' [1s]
  Comparing 't-browser.Rout' to 't-browser.Rout.save' ... OK
  Running 't-capture.R' [1s]
  Comparing 't-capture.Rout' to 't-capture.Rout.save' ... OK
  Running 't-change.R' [1s]
  Comparing 't-change.Rout' to 't-change.Rout.save' ... OK
  Running 't-demo.R' [1s]
  Running 't-error.R' [1s]
  Comparing 't-error.Rout' to 't-error.Rout.save' ... OK
  Running 't-exec.R' [1s]
  Comparing 't-exec.Rout' to 't-exec.Rout.save' ... OK
  Running 't-get.R' [2s]
  Comparing 't-ge

Reverse Dependencies (2)

suggests

Dependency Network

Dependencies Reverse dependencies crayon diffobj fansi vetr unitizer

Version History

new 1.4.23 Mar 9, 2026