Skip to content

xpectr

Generates Expectations for 'testthat' Unit Testing

v0.4.5 · May 12, 2026 · MIT + file LICENSE

Description

Helps systematize and ease the process of building unit tests with the 'testthat' package by providing tools for generating expectations.

Downloads

CRAN

624

Last 30 days

5224th

1.7K

Last 90 days

12.5K

Last year

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

r2u CRAN

16

Last 30 days

32

Last 90 days

107

Last year

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

CRAN Check Status

13 OK
Show all 13 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-windows-x86_64 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 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 16, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 23, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(xpectr)
  > 
  > test_check("xpectr")
  Saving _problems/test_gxs_function-633.R
  Saving _problems/test_gxs_selection-857
...[truncated]...
able expectations are created properly with gxs_selection() ──
  Expected `output_15496` to equal `list(...)`.
  Differences:
  Component 9: 1 string mismatch
  
  [ FAIL 2 | WARN 0 | SKIP 2 | PASS 840 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (4)

imports

Dependency Network

Dependencies Reverse dependencies clipr checkmate dplyr fansi (>= 0.4.1) lifecycle plyr rlang rstudioapi testthat tibble withr frailtyROC cvms groupdata2 rearrr xpectr

Version History

11 tracked
updated 0.4.5 ← 0.4.4 diff May 13, 2026
new 0.4.4 Mar 10, 2026
updated 0.4.4 ← 0.4.3 diff Mar 2, 2025
updated 0.4.3 ← 0.4.2 diff Nov 17, 2022
updated 0.4.2 ← 0.4.1 diff Jan 19, 2022
updated 0.4.1 ← 0.4.0 diff Oct 2, 2021
updated 0.4.0 ← 0.3.0 diff Jun 17, 2020
updated 0.3.0 ← 0.2.0 diff Mar 30, 2020
updated 0.2.0 ← 0.1.1 diff Mar 14, 2020
updated 0.1.1 ← 0.1.0 diff Mar 6, 2020
new 0.1.0 Feb 28, 2020