Skip to content

surveytable

Streamlining Complex Survey Estimation and Reliability Assessment in R

v0.9.10 · Sep 30, 2025 · Apache License (>= 2)

Description

Short and understandable commands that generate tabulated, formatted, and rounded survey estimates. Mostly a wrapper for the 'survey' package (Lumley (2004) <doi:10.18637/jss.v009.i08> <https://CRAN.R-project.org/package=survey>) that identifies low-precision estimates using the National Center for Health Statistics (NCHS) presentation standards (Parker et al. (2017) <https://www.cdc.gov/nchs/data/series/sr_02/sr02_175.pdf>, Parker et al. (2023) <doi:10.15620/cdc:124368>).

Downloads

CRAN

294

Last 30 days

13513th

840

Last 90 days

4K

Last year

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

r2u CRAN

9

Last 30 days

24

Last 90 days

123

Last year

Trend: -40% (30d vs prior 30d)

CRAN Check Status

1 ERROR
12 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 ERROR
r-release-windows-x86_64 OK
Check details (1 non-OK)
ERROR r-release-macos-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘Example-National-Ambulatory-Medical-Care-Survey-NAMCS-tables.Rmd’ using rmarkdown
--- finished re-building ‘Example-National-Ambulatory-Medical-Care-Survey-NAMCS-tables.Rmd’

--- re-building ‘Example-Residential-Care-Community-Services-User-NSLTCP-RCC-SU-report.Rmd’ using rmarkdown
--- finished re-building ‘Example-Residential-Care-Community-Services-User-NSLTCP-RCC-SU-report.Rmd’

--- re-building ‘Printing-HTML.Rmd’ using rmarkdown

Quitting from Printing-HTML.Rmd:225-228 [unnamed-chunk-25]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `assert_package()`:
! `print` requires the "openxlsx2" package. To install, type:
install.packages("openxlsx2")
---
Backtrace:
     ▆
  1. ├─base::withVisible(knit_print(x, ...))
  2. ├─knitr::knit_print(x, ...)
  3. ├─huxtable:::knit_print.data.frame(x, ...)
  4. ├─base::NextMethod()
  5. ├─knitr:::knit_print.default(x, ...)
  6. │ └─knit
...[truncated]...
 |   +-base::print(x)
  8. |   \-surveytable:::print.surveytable_table(x)
  9. |     \-getOption("surveytable.print") %>% do.call(list(x, ...))
 10. +-base::do.call(., list(x, ...))
 11. \-surveytable:::.print_excel(`<srvytbl_[,5]>`)
 12.   \-surveytable:::assert_package("print", "openxlsx2")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'Printing-PDF.Rmd' failed with diagnostics:
`print` requires the "openxlsx2" package. To install, type:
install.packages("openxlsx2")
--- failed re-building ‘Printing-PDF.Rmd’

--- re-building ‘Tips-tricks.Rmd’ using rmarkdown
--- finished re-building ‘Tips-tricks.Rmd’

--- re-building ‘surveytable.Rmd’ using rmarkdown
--- finished re-building ‘surveytable.Rmd’

--- re-building ‘use-cases.Rmd’ using rmarkdown
--- finished re-building ‘use-cases.Rmd’

SUMMARY: processing the following files failed:
  ‘Printing-HTML.Rmd’ ‘Printing-PDF.Rmd’

Error: Vignette re-building failed.
Execution halted

Check History

ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 25, 2026
ERROR r-release-macos-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘Example-National-Ambulatory-Medical-Care-Survey-NAMCS-tables.Rmd’ using rmarkdown
--- finished re-building ‘Example-National-Ambulatory-Medical-Care-Survey-NAMCS-tables.Rmd’

--- re-building ‘Exampl
...[truncated]...
surveytable.Rmd’

--- re-building ‘use-cases.Rmd’ using rmarkdown
--- finished re-building ‘use-cases.Rmd’

SUMMARY: processing the following files failed:
  ‘Printing-HTML.Rmd’ ‘Printing-PDF.Rmd’

Error: Vignette re-building failed.
Execution halted
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.2Mb
  sub-directories of 1Mb or more:
    doc   4.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.2Mb
  sub-directories of 1Mb or more:
    doc   4.7Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.2Mb
  sub-directories of 1Mb or more:
    doc   4.7Mb

Dependency Network

Dependencies Reverse dependencies assertthat magrittr glue survey huxtable surveytable

Version History

9 tracked
new 0.9.10 Mar 10, 2026
updated 0.9.10 ← 0.9.9 diff Sep 29, 2025
updated 0.9.9 ← 0.9.8 diff Aug 24, 2025
updated 0.9.8 ← 0.9.7 diff May 21, 2025
updated 0.9.7 ← 0.9.6 diff Apr 27, 2025
updated 0.9.6 ← 0.9.5 diff Mar 12, 2025
updated 0.9.5 ← 0.9.4 diff Oct 8, 2024
updated 0.9.4 ← 0.9.2 diff May 19, 2024
new 0.9.2 Jan 17, 2024