arsenal
An Arsenal of 'R' Functions for Large-Scale Statistical Summaries
Description
An Arsenal of 'R' functions for large-scale statistical summaries, which are streamlined to work within the latest reporting tools in 'R' and 'RStudio' and which use formulas and versatile summary statistics for summary tables and models. The primary functions include tableby(), a Table-1-like summary of multiple variable types 'by' the levels of one or more categorical variables; paired(), a Table-1-like summary of multiple variable types paired across two time points; modelsum(), which performs simple model fits on one or more endpoints for many variables (univariate or adjusted for covariates); freqlist(), a powerful frequency table across many categorical variables; comparedf(), a function for comparing data.frames; and write2(), a function to output tables to a document.
Downloads
5K
Last 30 days
1655th
10.5K
Last 90 days
10.5K
Last year
Trend: -7.5% (30d vs prior 30d)
CRAN Check Status
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 | 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)
*
*
*
*
tests
Running ‘testthat.R’ [7s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(arsenal)
>
> test_check("arsenal")
Saving _problems/test_lhs_modelsum-314.R
Saving _problems/test_lhs_modelsum-377.R
[ FAIL 2 | WARN 0 | SKIP 12 | PASS 477 ]
══ Skipped tests (12) ══════════════════════════════════════════════════════════
• On CRAN (12): 'test_write2.R:31:3', 'test_write2.R:37:3',
'test_write2.R:45:3', 'test_write2.R:50:3', 'test_write2.R:62:3',
'test_write2.R:104:3', 'test_write2.R:108:3', 'test_write2.R:112:3',
'test_write2.R:123:3', 'test_write2.R:128:3', 'test_write2.R:134:3',
'test_write2.R:189:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_lhs_modelsum.R:257:3'): Changing labels ──────────────────────
Expected `capture.kable(summary(tab, text = TRUE, term.name = TRUE))` to be identical to `c(...)`.
Differences:
1/54 mismatches
x[23]: "| |(Intercept) |39.188 |1.296 |< 0.001 |-0.058 |"
y[23]: "| |(Intercept) |39.187 |1.296 |< 0.001 |-0.058 |"
── Failure ('test_lhs_modelsum.R:320:3'): Changing labels ──────────────────────
Expected `tmp` to be identical to `c(...)`.
Differences:
1/54 mismatches
x[23]: "| |(Intercept) |39.188 |1.296 |< 0.001 |-0.058 |"
y[23]: "| |(Intercept) |39.187 |1.296 |< 0.001 |-0.058 |"
[ FAIL 2 | WARN 0 | SKIP 12 | PASS 477 ]
Error:
! Test failures.
Execution halted
*
*
*
*
*
*
*
*
*
Check History
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
tests
Running ‘testthat.R’ [7s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(arsenal)
>
> test_check("arsenal")
Saving _problems/test_lhs_modelsum-314.R
Saving _problems/test_lhs_modelsum-377.R
[ FAIL 2 | WARN 0 | SKIP 12 | PASS 477 ]
══ Skipped tests (12) ══════════════════════════════════════════════════════════
• On CRAN (12): 'test_write2.R:31:3', 'test_write2.R:37:3',
'test_write2.R:45:3', 'test_write2.R:50:3', 'test